Add flask app, first version of refactored library