Added update_user rpc and cleaned up a little.