Moved the cram index creation out of cram_index program and into the
cram_index.c part of io_lib library.
Bug fixed both the index creation and decode range checking to handle
containers/slices with ref_seq_id of -2, indicating that multiple
references share the same container.