Register parsers and serializers with mime-type

Like this it is now possible to use mime-types for the format argument
of Graph.parse and Graph.serialize.
Fixing tests wrt. multiply registered parsers and serializers
Merge pull request #277 from uholzer/register_with_mimetype

Register parsers and serializers with mime-type