Moved NHibernate setup to core.