Update nanopb to 0.2.5 and fix max string length options.
Add a protobuf type for diagnostic message responses.