Adding object->buffer serializer

This will allow a much simpler interface for creating advertising packets.