Selectmenu: Delay trigger until after the list closes

(cherry picked from commit dde487317c032685dd1bc16750d6b06a6032e8de)

Closes gh-7197
Fixes gh-7076
Toolbar: Back button correctly appears/disappears on external toolbar

This commit makes the following modifications:
1. Rename _addBackButton() to _updateBackButton() and move the decision making
   as to whether to add or remove a back button from _setOptions() into
   _updateBackButton().

2. Call _updateBackButton() from refresh() as well. This will cause the back
   button to be updated whenever the page changes, because the "pageshow"
   handler is hooked up to refresh().

3. Modify _addHeaderButtonClasses to not recognize the back button as a left
   button.

4. Modify the preconditions for adding a button to include an alternative to
   checking the page's URL for instances where there is no page present - i.e.
   when the toolbar is external. In such cases one must add a back button if
   the active item on the history stack is not the first item.

(cherry picked from commit b0685b3f19d1f5b7a9d0198a89236eade2cb801b)

Closes gh-7188
Fixes gh-6950
Transitions: Correct exception in unit tests

(cherry picked from commit 905478d3085ea35b5e9100dd4b7547f5d2c7d10c)

Fixes gh-7458
Flipswitch: Clean up integration tests page

(cherry picked from commit d225d19c072de11f3ba7904ba697ab3daaf061b2)

Fixes gh-7443
Events: Fixes the problem that touchend events were stopped

(preventing vmouseup-s) if taphold is set to prevent a following tap event

This refines the modifications made in gh-5983.

(cherry picked from commit f95bec6a9636e47a645a2861f4eaf077f19521a1)

Closes gh-6719
Fixes gh-7494
Re gh-5983
Navigation: Replace start( 1000 ) with start() to fix tests

(cherry picked from commit 87f9f48fe5fec50d4ac4e7831c392c0aa04a1831)
Forms: Unbind from pageshow to stop reset test calling start() twice

(cherry picked from commit d9c9fc4dba92b996f309715976531f815adbc239)
Tests: Fix miscellaneous path-related 404s in the tests

(cherry picked from commit 407f97567074cc2695413152121c7b343d6e0679)
Controlgroup: No need to delay unit test run

(cherry picked from commit 5a7b6dae7e8532dea77110db66b3e0c5a0d61bc0)
Degrade Inputs: Stop checking object.length and correct number of tests

(cherry picked from commit afda227173a20153564d183e19b2d95f2862d516)
Build: Upgrade to QUnit 1.14.0

(cherry picked from commit 66efe74bca088b7f4a28f6108cb7d081c5a74607)