Main code for the api server.

No actual code implemented yet just boiler code moved over from swift.
Changed the way configuration files were handled.