Make HTML menus and shortcut handling conditional based on inBrowser flag.

Also disable html menu unit tests except for context menus unit tests.