big commit.

prepared nhibernate fluent mapping and partial repository pattern