Add test around debug mode, use angular.bind

(instead of Function.prototype.bind)
Bump version to 0.6.7