Use first server name for non-www redirects to prevent issues with naming of vhosts within defined types.

Signed-off-by: Kalman Olah <kalman@inuits.eu>
allows setting client_body/header_timeout on vhosts
allow setting gzip_types to vhosts
Merge pull request #362 from eholzbach/master

allows setting client_body/header_timeout and gzip_types on vhosts
Merge pull request #310 from kalmanolah/rewrite_non_www

Use first server name for non-www redirects to prevent issues with naming of vhosts within defined types.
new raw_prepend / raw_append feature for vhosts & locations
  - added raw_prepend / raw_append to vhosts & locations, which
    adds raw lines to the vhost/location /without/ semicolons
  - added location_raw_prepend / location_raw_append to vhost
    for passing through to default location
  - added spec tests for new parameters
  - cleaned up location specs to match new header/body/footer setup
    reducing duplicate checks by testing header/footer separately.
  - cleaned up whitespace (2 space) in touched files
  - used `<%-` in erb templates to allow the use of leading
    whitespace, making the logic flow more readable
  - Also adds spec tests for recent vhost updates:
    - client_body_timeout
    - client_header_timeout
    - gzip_types
    - testing that the first server_name is used when www_to_non_www is true
Merge pull request #365 from rabbitt/feature/raw_prepend_and_append

new raw_prepend / raw_append feature for vhosts & locations
Change travis to exclude unwanted branches instead of only including master.
Merge pull request #368 from janorn/travis

Change travis to exclude unwanted branches
Allow using $http_cfg_append with list of lists

It should be possible to include array of arrays in order to have
duplicate configuration keys (when permitted), like:

    nginx::http_cfg_append:
        - [include, /etc/nginx/vhosts/*.ngx]
        - [include, /etc/nginx/vhosts/*/*.ngx]
Merge pull request #369 from Motiejus/validate_hash

Allow using $http_cfg_append with list of lists
Update init.pp

Bad logic for type validate.
Merge pull request #371 from mr-tron/master

Changed testing variables in init.pp
Added owner group and mode parameter. For all users, per sites-available directory and per sites conf
Merge pull request #373 from alkivi-sas/owner

Added owner group and mode parameter. For all users, per sites-available...
Initial Update to params for FreeBSD support

This adds the necessary changes the params class and associated
variables to support FreeBSD.
Add support for FreeBSD package installation
Update root group for wider support

The super group on many platforms is known as root, which a UID of 0.
However, on other platforms, the UID is still 0, but the group is
'wheel'.  Largely historic UNIX jargon, but suffice to say that, to
support FreeBSD and others, setting the group of '0' has the same impact
while supporting a wider range of platforms.
Fixup for matching $kernelversion on Joyent

This replaces the code that used to exist and now accommodates FreeBSD
using the $kernel fact, but still allows Joyent selection from
$kernelversion.
Add FreeBSD case for $nx_daemon_user