Add closeTask jsonrpc API.
Add openTask jsonrpc API.
Merge pull request #165 from Typz/closetask

Add openTask and closeTask jsonrpc API.