Add some new api to queue

Add some new api to queue:
method: `pause()`, `resume()`;
attribute: `isPause`;
event: `onpause`