Add serializers for common content types; add test cases (issue #15)