Add option for setting request timeout.
Better error message on failed request.
Cleanup.
Changed from superagent to request http lib.