Adds io::stream and io::file interfaces.
Adds query script.