GRIZZLY-1720: Forward-port of GRIZZLY-1281 (commit: e54698c), excl. the config module, which was moved to the glassfish project (GRIZZLY-1486). Corresponding issue: GLASSFISH-20842
GRIZZLY-1720: 2nd part: Make sure JSESSIONID gets the Secure flag when using schemeMapping