Used Flask-RESTful for API

Closes #162
Would that work for ```StructuredProperty``` and ```LocalStructuredProperty``` as well?