Switching tasks endpoint to return JSON
use NewEncoder for json marshaling
Merge pull request #13 from twitter/jsontasks

Switching tasks endpoint to return JSON