Mimetype and url validation for new content items.

This pull request Validates the url of updated and new content items as well as setting media type based on mimetype.  Media type set by client is now ignored.