Big update

Re-written everything to respond to the restful API and changed
basically EVERY file