Popup: Correctly enhance popup and its contents before opening

This is a better fix than the one provided in the original PR for this, because
it avoids the use of .enhanceWithin(), and it moves the image width/height
retrieval to popupbeforeposition, which is correct, because during creation the
popup is truncated to 1px x 1px.

Closes gh-7290
Fixes gh-7336
Table: Remember hidden columns post-refresh

Closes gh-7334
Fixes gh-7275
Helpers: Make resetActivePageHeight() less aggressive

Do not set min-height if the existing height is good enough.
This fixes iOS 6.1, but not WP8.

Closes gh-7325
Fixes gh-7322
Checkboxradio: Depend on vmouse and test custom, widget-only-build

Closes gh-7295
Fixes gh-7294
Re gh-5987
animationComplete: Remove only the handler attached by us

Closes gh-7267
Fixes gh-7265
Panel: Bail upon opening animationComplete() if the panel has closed

Hook up animationComplete() to the wrapper, if present, and only otherwise to
the element, because the animation class is only added to the element if there
is no wrapper.

The tests now need to wait for the panel to actually open in order to hit all
the assertions, because some assertions are made only upon panelopen.

Closes gh-7264
Fixes gh-7236
Table: Restrict selector scope by using generated popup ID

Closes gh-7342
Fixes gh-7341
Build: Don't use casper.clickLabel

Re gh-7330
Demos: malformed anchor in navigation menu

Fixes gh-7329
Build: Don't process images when copying files for Google CDN

Fixes gh-7284
Popup: External popups no longer need custom click routing

Fixes gh-7367