Flow Monitoring implementation (#261)

Record and enum definitions, encoding/decoding