Added PersistentTokenRepositoryImplTest and supporting code and configuration changes