Used Flask-RESTful for API

Closes #162