Clean up fnv implementation in idxlib.py.
Small updates to FNV.
Move index function into idxlib.py, in preparation of implementing it in the C library.
First version passing test.py with indexing done by the C library.