improved interface
extracted joins into factory
extracted relation factory
query uses factories and improved model interface
Merge pull request #9 from potfur/dev

Dev