def request(method, path, options, format)
      begin
        case method.to_sym
        when :get, :delete
          response = connection.send(method, formatted_path(path, format), options)
        when :post
          response = connection.send(method, formatted_path(path, format), options)
        when :put
          raise "PUT verbs are not yet supported!"
          # request.path = formatted_path(path, format)
          # request.body = options unless options.empty?
        end
      
      #TODO: format is not obeyed.  From Yam we get back an array of objects
      response
      
      rescue MultiJson::DecodeError
        Hashie::Mash.new
      rescue Faraday::Error::ClientError => e
        raise Yapper::ErrorProxy.new(e)

      end
    end
def request(method, path, options, format)
      begin
        case method.to_sym
        when :get, :delete
          response = connection.send(method, formatted_path(path, format), options)
        when :post
          response = connection.send(method, formatted_path(path, format), options)
        when :put
          raise "PUT verbs are not yet supported!"
          # request.path = formatted_path(path, format)
          # request.body = options unless options.empty?
        end
      
      #TODO: format is not obeyed.  From Yam we get back an array of objects
      response
      
      rescue MultiJson::DecodeError
        Hashie::Mash.new
      rescue Faraday::Error::ClientError => e
        raise Yapper::ErrorProxy.new(e)

      end
    end
Perform an HTTP request