Minimal networking classes for iOS/OSX