Added type factory for unmarshalling.
Initial commit.
Merge remote-tracking branch 'origin/master'