Add equality test

Good equals and hashcode are necessary for NHibernate, even for single
session applications.
Map entities using assemblies.