Replace override of window.setTimeout, etc. with Jasmine-specific monitoring for completion, making it easy in theory to support other testing frameworks (reverted diff due to IntelliJ reformat).