Add basic rest api

It's very unrefined, but it's a start.
Add basic configuration to run on Heroku