added ability to change number of classes that we adapt from.
Merge branch 'protocol-manager' of github.com:enthought/apptools into protocol-manager