cleaned out some stuff and added an Identity class and an Is relationship for handling identities.