fix: ensure user agent is less than 0xfd in length. we can assume the varint is 1 byte.
minor: remove commented code. style concerns.
minor: more style concerns.
minor: style - move block json functions to bottom of the file.
fix: minor fixes to block framer and block.