Add integrations tests to cover password storage

- Fix a bug in the store found by one of the tests (we should allow null passwords to be set so passwords can be removed)
Add integration tests for external logins and claims

- Fix bug with logins where finding by login was selecting from the wrong table in the CQL statement (doh!)