Refactored and greatly improved the implementation of ManyToMany fields in ContentBase models.

It seems that the current implementation of ManyToMany fields in ContentBase models doesn't work.  I'm not entirely sure how that happened, considering it worked in testing, but regardless I've refactored the code to ensure it always works correctly.