Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer.
Added availability resource
Fixed recommendations key redefinition

Per pull-request #1
Changed arguments loops back to native for loop

Per pull-request #1
Added better error handling for if there is no response

We had some failures with our IFTTT shim where the connection to the API
would fail, causing the app to crash because 'response' was undefined.
This would fix cases like that.
Init error as empty object

Fixes 'undefined' errors when we try to read '.error' off of HTML
responses.
Merge pull request #1 from jkap/master

Fixed setup for recommendations API