Reorganize format plugins

    NEW serialize and deserialize methods
Detect API format based on Accept header
update documentation
Fix detect_serializer