Update bookmarklet to parse GitHub URLs

Also some organizational changes to make the code a bit cleaner, such
as storing the regexs in variables.

Many thanks to David Sanders (@dpsanders) for this idea and for figuring
out the regex logic for this.
Update Firefox extension to parse GitHub URLs
Update Chrome extension to work on GitHub .ipynb pages.