Add json based tech tree.
Move the tech tree to a json file for easier modification.
Also we can now access it from the front end directly which makes things
easier.
Add exceptions.
Move tech tree out of accelerator.py.