Moved initialization of RPC server to setup function. Removed REST commands that are handled by RPC server. Added login redirect, and login protected stream page.