Refactor AccountsController edit and update a bit.

Still more work to do here.