Add debug as a dependency
Adding debug logging using debug package
Fix dependency
More debug statements

@swissmanu: merge?
Depending if on the server, debug view as well
debug branch merged and new version tag. thx @mweibel