[TORQUE-1031] Web contexts should be normalized

Fixes https://issues.jboss.org/browse/TORQUE-1031

Added unit test and 4 integs.

Anything else we want to do here? Or maybe it should be done somewhere else?