Added rpc. Added different run modes.
Fixed broken home view