Moving from TurboGears to flask

work in progress