Refactor serializer impl to hpp/cpp, new serializers, property trees.