Slave registration for AMP, c['AMPPortnum'] and c['PBPortnum'] options replaced to
c['protocols'] which will looks like
c['protocols'] = {'amp': {'port': 1234}, 'pb': {'port': 1235}}
I also added some simple checks to prevent port duplication or wrong type declaration