add timeout to newrelic api calls

Resolves: #226
Merge pull request #228 from 3dna/timeout

add timeout to newrelic api calls