Support for memcached

Using SecureSocial (master snapshot) with Memcached causes IllegalArgumentException because of empty or too long Key.
Problem lies in the DefaultAuthenticatorStore which never checks if given id is empty and also in DefaultIdGenerator whick produce too long ids to be used as Memcached Keys.