Content type and allowed methods checking

First approach on plugin in serializers and unserializers for different
content types.