Intervals I/O module

We need this for the BAM realigner.