[BUGFIX] Invalid RSA key when submitting form twice

When submitting a RSA-supported form twice, the JS error
"Invalid RSA public key" is thrown. In order to suppress
this double RSA decryption, an additional JS check is needed.
The change also modifies the minified version of the JS
done with http://refresh-sf.com/yui/

Change-Id: I7133e320c76e14a6f6855f477ba5a34e50eecf58
Resolves: #40085
Releases: 6.1, 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/18351
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[BUGFIX] Take versioned record into account for showHidden flag.

The flag showHiddenPage is set if the requested uid is a hidden page.
The original code always looked at the original uid and not to version
in the active workspace. This is fixed.

Change-Id: I49017e874fc2accfc9c38789d8d73528afed3c6f
Fixes: #33392
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/12802
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Bart Dubelaar
Tested-by: Bart Dubelaar
Reviewed-by: Stefan Neufeind
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack