Refactored some things trying to get the xml out of the javascript, but was unsuccessful
Renamed main.py to controller.py