Simple asynchronous networking class for Swift