Merge pull request #2 from rymdjs/feature/feature/endpoints

Refactoring identities route
Merge pull request #3 from rymdjs/feature/feature/endpoints

Fix syntax error
Fix runtime error