Add bglog function

Use bglog instead of console.log
Open background.html from the extensions page to view log messages
change engine >> socket
Merge pull request #1 from samaanghani/logging

Logging