Added some routing for RESTful API calls

Flask documentation:
http://flask.pocoo.org/docs/quickstart/