Added function stop and test to Throttler.

As this tool is widely used I prefer to create a PR to add this feature and its test.
I know `Throttler#queue` is not intended to be referenced from the outside; however, since it's a public property, I would clean it up this way `this.queue.length = 0` This way we ensure all it's references will be also cleaned up.