Used Flask-RESTful for API

Closes #162
Not sure why @topless suggested that but I would prefer the usual convention for importing the actual module here