Re-write for jasmine2's event-driven style, in a way that doesn't rely on jasmine internals

Also works with jasmine#575 for totalCount and passedCount, which are currently missing.