Added basic REST api with flask-peewee.