Isolate server in its own pack
Merge pull request #2069 from hapijs/8

Isolate server in its own pack
7.2.0
7.2.0
changelog
Add failing test for idGenerator setting
add idGenerator server setting

`idGenerator` server setting can be used to customize the request ID generation. Set this to the string name of a built-in generator or provide a function which returns the `request.id`:

   - `epochms-pid-random` - unix time (in milliseconds since epoch) - process pid - 5 digit random number between 0 and 65536. Ex: 1414402825896-6691-5132 (Default generator)
   - `epochms-hostname-pid-counter` - unix time (in milliseconds since epoch) - hostname - process pid - 5 digit counter (starts at 10000, increments by 1 for each use, rolls over at 99999). Ex: 1414402825896-server1-6691-12345
   - `fn(now)` - if a function is provided, the value it returns will be used for the `request.id`. The function may use the `now` parameter which contains the result of Date.now() to create its result.
improve test regex to match full string

add ^ and $ to the regex to make sure we are comparing against full string