Added persitence and logging

Added persitence (NHibernate) and logging (log4net) facilities.
Added Castle Installers.
Added NHibernate configuration.