Test automation identity

The test involves creating a user, and then changing it. Also did various refactoring, added config etc
We should probably not store passwords. I suggest we generate a random password on each test run (using scala.util.Random.alphanumeric.take(10).mkString)