 
 let BRAPIClientErrorDomain = "BRApiClientErrorDomain"
 
-typealias URLSessionTaskHandler = (NSData?, NSHTTPURLResponse?, NSError?) -> Void
-typealias URLSessionChallengeHandler = (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Void
+public typealias URLSessionTaskHandler = (NSData?, NSHTTPURLResponse?, NSError?) -> Void
+public typealias URLSessionChallengeHandler = (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Void
 
 extension String {
     static var urlQuoteCharacterSet: NSCharacterSet {

    return rfc1123DateFormatter.stringFromDate(NSDate())
}

@objc class BRAPIClient: NSObject, NSURLSessionDelegate, NSURLSessionTaskDelegate {
    var session: NSURLSession!
    var queue: NSOperationQueue!
    var logEnabled = true

        task.resume()
    }
    
    public func me() {
        let req = NSURLRequest(URL: url("/me"))
        let task = dataTaskWithRequest(req, authenticated: true) { (data, resp, err) -> Void in
            if let data = data {
