Test automation identity

The test involves creating a user, and then changing it. Also did various refactoring, added config etc
I am hoping to implement an ajax friendly version of this at some point!