Reworked build.py
Reworked teh backend to use less regex and be less complex. This changed some variable names in the hash map used in the JS, but no changes in the logic of the JS were made.
There was a rebasing incident while trying to catch up to the changes in the master branch that didnt go cleanly. Closes #11 (closed)