Move checkout form submit handler to ModeSwitcher.

ModeSwitcher queries the current mode for available actions and selects
the correct action using the input prefix. This removes the need to
check the prefix in each mode and rebind form event handlers every time
the checkout mode is changed.