While learning frameworks (Webkit and Safari Services) I decided that it would be useful to write a small tutorial for myself :)