fixes #1745 - make puppetmaster hostname/domain stripping behaviour configurable
fixes #2378 - added Minitest and other code cleanups
fixes #558 - proxy fails if the the url include a tralinig slash.
Fixes #65, Fixes #339 and Fixes #539