Identity check script

Moved the checking of identity and key setup to a standalone script,
identity.py.  KeyENCODE now also checks the user's name.