Reenable idxstats and convert to htslib

Reenable idxstats code by using new functions added to htslib.
Convert API for index and idxstats to htslib.
Depends on PR htslib#83

Signed-off-by: Martin O. Pollard <mp15@sanger.ac.uk>