Uses $log service from angular instead of console.log
Introduces new debug_enabled configuration