Order + order type initial definition

Stable enough to be merged.
Since we're implementing the revision methods, we should go ahead and declare a revision_table as well.