Added basic login controls
Added some really early experimental support for jsonrpc. This stuff will get reworked for sure