added serializers.py to handle turning snippet instances into json.