Update API to use Tornado-JSON 0.40

resolves #68