Merge CanonicalJSON into Serialize class

The consumers of the Serialize class don't need to be concerned with how
the data is actually serialized. That is the responsibility of the
Serialize class.

The functionality of the CanonicalJSON class is merged into Serialize
and all references to that class is updated to use Serialize
consistently.