Refactor protocol-specific packet construction into plugins.

I did a bit of refactoring to make gencfg.sh a bit more wieldy.
I also added support for NTP monlist. I thought this would be created as two separate pull requests - sorry about that.