Remove identity

Remove Identity type from the project.

This is currently sitting on top of #5210 and only consists of commit 9c8a2dc.

This also removes the old authentication.