Basic ORM (ignore branch name)

This PR adds the basic ORM. Don't merge quite yet, one or 2 py3k bugs still.