add files to gitignore
refactor debug() calls

as debug module is noop for not enabled namespaces additional 'if' is not
required
bind emit to correct this arg
Merge pull request #8 from moperacz/master

remove unnecessary 'if' from 'debug' calls