Added /api/hash endpoint.
rename /api/hash to /api/identity
add 'type': 'email' to /api/identity endpoint for future-proofing.
Merge pull request #705 from toolness/api-hash-endpoint

Added /api/identity endpoint.