Performance enhancements.

- Push the filter/function check in filterCheckTheBastard out to the
caller.
- Simplify the alreadyWaiting case since that should never happen
anyway.
- Replace the forEach with a for loop in jPromise.