Extra check for parameters in $_SERVER for timthumb. Fixes #733.

See also: #591
Initialize the stopwatch, even if debug is of, otherwise we'll get errors when not logged in.
Refactoring IntegrityChecker.