Allows scopes to be defined in LDL
Fix the parameter name
Use debug module for logging
Merge pull request #82 from strongloop/feature/ldl-scopes

Allows scopes to be defined in LDL