NSURLConnection's API is broken for swift