update deployment

add a bunch of boilerplate from fbone

based on MIT licensed code at:
  https://github.com/imwilsonxu/fbone


this should allow transitioning the code to be more "flasky" and use blueprints, instance folders and the like to make deployment more sensible