update deployment

add a bunch of boilerplate from fbone

based on MIT licensed code at:
  https://github.com/imwilsonxu/fbone
Merge pull request #2 from termie/flask_config

update deployment