Adding API frontend
The API is pretty much completed, I haven't tested at all :)
Changed the main application