Refactor of identity apis into own classes
Merge pull request #155 from southpolesteve/identity_refactor

Identity refactor