complete refactoring of the code using blueprints

includes a REST API for manipulating objects
the ui is separated and relies on flask-security for login/out
	there are some issues with the ui at the moment
		the projects page doesn't properly load from a user fetch error
		tables need to be reset between context changes on index.html
test has been dropped and recreated with some minimal api tests