Manage a callback with invocation scope. This is used internally by GameJs but might be useful for others.
Any arguments passed to trigger will be passed to the callback.
trigger