flask app

@pmclanahan r?

So this is a very rough draft. Although written in a rush after lunch in about 2-3 hours it's still really really rough. It works. 
If it works we can tune it up a bit and publish it on paas.