src/sancara: Implement a basic message parser