cleanup and fixes

- fixed type-o in URL: “/jobs” needed to be “/job”
- some refactoring: new helper method to (somewhat) inteligently build
URL query parameters
- ground work for support the “root token” plugin