added accounts app, restructured constants, middleware, decorators