Refactor

Move things around a bit, clean up the Accounts menu actions, prepare
for URL handling, and fix build with new rpc_server API