Allow users to create user-specified rules. Rules are saved in local storage and automatically loaded when the browser / extension starts up.

TODO:
This change does not allow users to edit/delete existing rules or to submit them to a central location.
This change doesn't support exceptions or cookie rules yet (but no reason they couldn't be easily added).

I also introduced a structure for a JS object that can be used to represent rules.
Remove jquery dependency
Merge pull request #1 from jsha/jsha.add-persistent-user-rules

Remove jquery dependency
fix code review comments: hide advanced options by default, add missing semi-colon, remove duplicate TODO
Added ruleset merger script

Merger script added.
TODO: fix it to work with the correct tree
Changed name to make it clearer
Fixup commit

For some reason, the file was not committed correctly. Re-doing the
commit-
Added 'git diff' generation

Used pyhton subprocess.call() to automatically generate the git diff and
save it in /tmp/ with a random filename
Merge branch 'master' of git://git.torproject.org/https-everywhere
Alexa ruleset checker working

The ruleset checker seems to be working: it downloads and unzips the
Alexa Top1M and automatically generates the git diff.
Comparing the two seems to be working as well.

Manually checked some rules: they seem to have been correctly identified
as in the Top 1M and not in stable
Force youtube.com's googlevideo.com XHRs to use https
When youtube is used in HTML5 mode, the web page makes XMLHttpRequests
to various subdomains of googlevideo.com. These requests return
the HTML5 video and/or audio file that is to be played on the
web page.
Merge branch 'master' of git://git.torproject.org/https-everywhere
Added rule limit and recognition of edited rules

Rule limit was implemented using csvReader.max_lines and breaking
the loop when it's hit
Implemented tecognition of edited rules via the "M" flag of git
diff.
Output was tidied up a bit to account for the different wording (used tabulation)
Merge branch 'master' of https://github.com/arthuredelstein/https-everywhere into arthuredelstein-master
Turn off the LOAD_REPLACE flag on redirected nsiChannel

By turning off this flag, we allow Flash to work with HTTPSEverywhere on YouTube (see comments in code).
Merge branch 'master' of git://git.torproject.org/https-everywhere
Allow YouTube/Flash to work in Chrome.
Restore code that loads user-defined custom rule files.
Merge branch 'master' of git://git.torproject.org/https-everywhere
Edited to raise IOError for Python < 3.3.4

In Python < 3.3.4 the FileNotFound exception is not present.
As some filenames have weird encodings, and it's too problematic to fix
the code to consider those, the FileNotFound error approach has been
mirrored to work with Python < 3.3.4