rearrange project following the flask Simple Packages pattern.

http://flask.pocoo.org/docs/patterns/packages/#simple-packages