     
     public var token: String?
     
+    public var isRefreshing = false
+    
+    public var retries = 0
+    
     let tokenURL: String!
     var fbToken: String!
  

                    
                    if let rtoken = JSON["token"] as? String {
                        self.token = rtoken
                        completionHandler(token: self.token, error: nil)
                    } else {
                        
                        if let e = JSON["error"] as? NSDictionary {
                            let message = e["message"] as? String
                            let err = NSError.createWatsonError(503, description: message!)
                            completionHandler(token: nil, error: err)
                        } else {
                            let err = NSError.createWatsonError(503, description: "Some other error occurred")
                            completionHandler(token: nil, error: err)
                        }
                    }
                    
                    
                   
                } else {
                    completionHandler(token: nil,
                        error: NSError.createWatsonError(400, description: "Could not parse response"))
                }
                
                

     - parameter completionHandler: <#completionHandler description#>
     - parameter error:             <#error description#>
     */
    public func refreshToken(completionHandler: NSError? -> Void) {
       
        let url = "\(tokenURL)?fbtoken=\(fbToken)"
        
        Alamofire.request(.GET, url)
