Extracted code from OctoKit.objc that connects AFNetworking with ReactiveCocoa and Mantle