General update

Requires https://github.com/wmde/WikibaseDataModelJavascript/pull/16.
These changes are supposed to add completeness to the component in terms of providing a serializer and a deserializer for every constructor of the JavaScript data model.
Upper case variable names are odd.