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
Not that I can tell, will fix.