changed to namepsace calls to fromJSON
added install httr to travis file
added install httr to appveyor file