[PATCH v6 01/15] lib: Add TLV parser