rename bp folder to api
app factory

refer to
http://mattupstate.com/python/2013/06/26/how-i-structure-my-flask-applic
ations.html
move config.py