Added asyncfile.readLine and async stdin/out/err. Ref #1487.