F3792625/permgen

Add support for permgen JVM option.
Add param $stop_stash.
Add test for upgrades.