 import Foundation
 import JaSON
 
-protocol AppStateRepresentable {
+public protocol AppStateRepresentable {
     var accessToken: String? { get }
     var loggedIn: Bool { get }
     var networkPath: String { get }

        task.resume()
    }
    
    func POST(endpoint: String, parameters: [String: String]?, completion: (responseObject: JSONObject?, error: ErrorType?) -> Void) {
        if appState.accessToken == nil {
            // TODO: Force authentication
        }

        task.resume()
    }
    
    public func logOut() {
        appState.deleteToken()
    }
    
    public func GET(endpoint: String, parameters: [String: String]?, completion: (responseObject: JSONObject?, error: ErrorType?) -> Void) {
        if appState.accessToken == nil {
            // TODO: Force authentication
        }
