Added invokeBeforeFrame/invokeAfterFrame functionality using
ConcurrentLinkedQueues as per Neil's advisement.
Added invokeBefore/After functionality using ConcurrentLinkedQueues as
per Neil's suggestions.