some tests and fixes
added base classes for IProfile and IWorkEntry
refactored a bunch to move nhibernate classes into a separate project