Idx: module to access the index

Note: there are non-pushed commits waiting on another machine. Functions from this module will be adapted after the merge.