Added context menu item to bookmark current page.

Also fixed a potential bug in doXHR method.