Add new 'vehidebetadialog' GET parameter to not show the beta dialog

Mostly for the benefit of the browser tests. Also, clean up this code a bit.

Change-Id: I9c85171ee175dabc232740c5c48ec363db10e98c
Merge "Add new 'vehidebetadialog' GET parameter to not show the beta dialog"