Fix message passing for newer Chrome version

Only use `chrome.extension.sendMessage` if available.
Use `chrome.runtime.sendMessage` otherwise.
Release v0.3.1