quick refactor of code from identified issue on codeclimate
Merge pull request #13 from interlock/refactor

quick refactor of code from identified issue on codeclimate
Removed `call` on implementations for Role and Permission providers.
Updated spec tests to reflect new interface
Updated example to use new implementation interfaces.
Made a spec async to ensure positive pass.
setter/getter on Bunyan logger, log() method pass-through calls to bunyan logger and placed some `trace` level calls in a few strategic places.
Fixed scoped variable name override in PermissionRegistry `getPermissions`.
Fixed PermissionRegistry not constructing with instance of SecurityRegistry
Configured jasmine_node shows a stack trace on exceptions
Fixed typo on `provider` variable name
Merge pull request #15 from interlock/implementation_ref

New interface for Role and Permission Providers
Merge pull request #16 from interlock/log

Add log() to security registry
version bump to 0.1.3 and updated package.json fixes #18
implements #19, bestRoleFor()
version 0.1.4
Registering in PermissionRegistry throws Errors when bad params are passed
Clarified and updated some method docs
getPermission is now fussy about its parameters
Implemented basic param type in constructors and providers.
Custom Exceptions for each Class.
New default Role is 'guest', can be overridden after initialization.
Caught issue with throwing exceptions when a cb with an error was more appropriate.
Changed order of pre-conditions check on async functions to test for valid cb, throwing an exception if not valid.
Merge pull request #22 from interlock/param_checks

Param checks on Object constructors, some async and sync methods.
Some minor lint errors fixed.
Fixed minor issue with RoleProvider load returning immediately on error.