fix for content-type bug, plus removed use of SynapseMalformedEntityErro...

...r from utils to avoid circular dependency.

exceptions.py now imports the utils._is_json method. The utils module only doesn't import any of the synapseclient modules and throws a ValueError from id_of() rather than a SynapseMalformedEntityError.