Setup flask for larger application. Added user login. Have flask handle RPC.x