More identity checks and tests.
Updates following review.
Don't blow up if we cannot get an APIState connection.
More updates.
Merge pull request #352 from davecheney/143-apiinfo-whisky-tango-foxtrot

Don't blow up if we cannot get an APIState connection.
Once we have authenticated, we don't need a tagged authenticator any more.
Move the file to match the source.
Updates following review.
Tweaks.
Merge pull request #347 from howbazaar/identity-in-state

Initial identity collection in the database

Define the initial identity structure in the database, and tests.
Merge pull request #354 from howbazaar/apiserver-entity-not-authenticator

Once we have authenticated, we don't need a tagged authenticator any more

state.Entity is fine.