loci: add a function to parse messages without allocating memory

This will be used by the Indigo connection manager to parse messages directly
from the read buffer, saving three allocations and a memcpy.
Merge into master from pull request #209:
loci: add a function to parse messages without allocating memory (https://github.com/floodlight/loxigen/pull/209)