Switches (and related stuff) added to sample web project, allowing testing of client/server validation and localized messages. Some minor refactoring.