restructured app; flask won't allow any elegant way of seperating front and backend, so now they're all in app