     }
 }
 
-import waterwheel
 /**
  Sends a GET Entity request to Drupal
 


// MARK: - Requests

public func sendRequest(path:String, method:Alamofire.Method, params:paramType, completionHandler:completion) {
    let urlString = waterwheelManager.sharedInstance.URL + "/" + path + waterwheelManager.sharedInstance.requestFormat

    if (waterwheelManager.sharedInstance.signRequestsBasic == true) {

                })
            }
            else {
                waterwheel.setIsLoggedIn(false)
                completionHandler(success: false, response: response, json: nil, error: response.result.error)
            }
    }
}



/**
 Logout a user

 - parameter completionHandler: A completion handler that your delegate method should call if you want the response.

 */

public func logout(completionHandler:stringcompletion) {
    if waterwheelManager.sharedInstance.signRequestsBasic  {
        waterwheelManager.sharedInstance.basicUsername = ""
        waterwheelManager.sharedInstance.basicPassword = ""
        waterwheelManager.sharedInstance.signRequestsBasic = false
        return
    }
    let urlString = waterwheelManager.sharedInstance.URL + "/user/logout"
    Alamofire.request(.GET, urlString)
        .validate(statusCode: 200..<300)
        .responseString { response in
            if (response.result.error == nil) {
                waterwheelManager.sharedInstance.CSRFToken = ""
                waterwheelManager.sharedInstance.signCSRFToken = false
                completionHandler(success: true, response: response, json: nil, error: response.result.error)
            }
            else {
                completionHandler(success: false, response: response, json: nil, error: response.result.error)
            }
    }

}

/**
 
 Private function to get the CSRF Token
 
 */
private func getCSRFToken(completionHandler:stringcompletion) {
    let urlString = waterwheelManager.sharedInstance.URL + "/rest/session/token"
    Alamofire.request(.GET, urlString)
        .validate(statusCode: 200..<300)
