Add registerDataType to DataTypeFactory

Change-Id: I5f2b2f1493ce8dce3e22dbaa7fd51ab87daef765
Merge branch 'master' of ssh://review/mediawiki/extensions/DataValues