model: support null data source

Allow the user to specify that the new model should not be attached to any data source.

See #40.

/to @ritch please review