Updated to newer Chrome API by removing some deprecated messaging functions.