Content - ContentTypes ContentTypeResource and ContentUnitsCollections

I thought these three would share more code than they ended up sharing so I combined them. The next one looks more complex though, so decided to make this PR now.
Can json_encoder be imported as pulp_json_encoder for clarity that it's not part of the standard json module?