* usable as a flask extension

* setup.py for packaging/installation
* refactored configuration