Updated rewrite rules, implemented basic gallery and web worker for compiling

Times out after 5 seconds to make accidentally DoS'ing yourself or others harder.
The gallery is crude but it will serve for now, not sure if I manage to fully
implement twitter. Turns out more difficult than anticipated (as always. I should
start anticipating it).
Merge pull request #11 from Winchestro/master

Updated rewrite rules, implemented basic gallery and web worker for comp...