adding basic creation unit tests and models. A lot of time spent here sorting out strange ORM bugs.
Merge remote branch 'origin/master'