Add get_appropriate_subclass to XFormInstance, dispatched on doc_type
Move class-instantiation dispatch out of XFormInstance
Merge pull request #7 from kennknowles/XFormInstance-db-subclass

Dispatch model class instantiation based on stored doc_type