Replace homebrewn SNMP agent config transport protocol with JSON

The old protocol does not escap protocol specific characters, so it was replaced with a JSON based.