Moved inline JS on "edit user" page into it's own file and added support for email management.