fix updating handler socket => host value

When updating a handler, the socket value only updated if the port had changed. It was also doing some verbose checking that wasn't future proof.

This change includes a general spec along with using existing required method definitions to compare the `is` and `should` values
Merge pull request #160 from danshultz/handler_socket_updates_with_changes

fix updating handler socket => host value
Add hasrestart & hasstatus to service management.
Removes hasstatus
Fix variables syntax
Removes trailing commas cause ruby 1.8.7
Merge pull request #164 from rhoml/rhoml/fix-services

Add hasrestart & hasstatus to service management.
Fix sensu dashboard config type conversion to always be a string
Changed repo check from operatingsystem to osfamily

Due to the large number of RHEL clones it's simpler to use osfamily. In
my use case Scientific Linux wasn't mentioned and thus the module failed
in my environment.
Also did the same for Debian to be consistent.
Fixed tests for repos using osfamily

Tests needed to be updated to use osfamily fact rather than operating
system.
Use $url param to build apt-key url

When using a mirror of sensu I want to also
use the mirror to retrieve the repo's apt-key,
particularly if there's no internet available.
Merge pull request #170 from solarkennedy/sensu_dashboard_typefix

Fix sensu dashboard config type conversion to always be a string
Merge pull request #173 from george-b/os_family

Changed repo check from operatingsystem to osfamily
Merge pull request #175 from patdowney/use_url_var_to_get_key

Use $url param to build apt-key url
updated native types and providers to use base_path/config when puppet is run under nonroot user

  * this is needed because if sensu is run with a nonroot user
    the config files cannot be used as they are owned by root
    thus puppet cannot conigure what it does not have access to.

  * This is part 1 of what needs to be changed, since this sets
    defaults for base_path we can add this ability now and work
    on the manifests to be nonroot compliant later.
Fix warnings from ruby like this:

/var/lib/puppet/lib/puppet/provider/sensu_client_config/json.rb:82: warning: parenthesize argument(s) for future version
/var/lib/puppet/lib/puppet/provider/sensu_check/json.rb:64: warning: parenthesize argument(s) for future version
Merge pull request #178 from notanisp/fix_ruby_warnings

Fix warnings from ruby like this:
Machines which don't have internet access can't pull the repo key
Test fix
Merge pull request #176 from logicminds/nonroot

updated native types and providers to use base_path/config when puppet i...