Used Flask-RESTful for API

Closes #162
Use the `config.CONFIG_DB` instead of `model.Config.get_master_db()`