input_stream: add offset (start and end) support

Link: https://github.com/GeneAssembly/biosal/issues/262
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>