Automatically set mode (syntax highlighting) when tab is renamed.

This addresses the issue I opened a few minutes ago (https://github.com/GoogleChrome/text-app/issues/162).