Make HTTPS Everywhere compatible with e10s (multiprocess firefox)

Work in progress. As of now, rewrites work and the basic UI features work.

TODO:
* check for backwards compatibility