breaking api change: binarystore takes a stream, not a file, for easier testing (e.g. with a memstream).