fix for travis build failure; improved test coverage

- fixed the `custom_middleware` test to use `options.base` as an array
  of static paths

- added unit tests for https use cases

- refactored unit tests and the test case configs in Gruntfile.js to
  use a sequential set of TCP port numbers, starting at 8000,
  for clarity