Far too many changes for one commit really but...

Domain model, nhibernate & ravenDb repository stuff and a few more other
things