Fix pylint complaints; escape caret when in first position.
Add bit vector module.
Move lowercase_code to util.
Swap simplify_charclass to use a bit vector instead of sets.

This takes another ~6 seconds off 'make demo' on my machine, now down to 27
seconds.
Plumb re.I to simplify_charclass as intended.