Make HTTPS Everywhere compatible with e10s (multiprocess firefox)

Work in progress. As of now, rewrites work and the basic UI features work.

fixes #447 #510 

TODO:
* check for backwards compatibility
Any reason to pass browser here rather that an nsIURI directly?