Consistent formatting
Replaced the deprecated chrome.tabs.sendRequest with chrome.tabs.sendMessage

Fixes issue #21
Prevent connecting to an tab that's still loading

Fixes issue #22