[PATCH 01/27] Add utilities for encoding BTLVs and CTLVs.