Complete the definition of the index_entry record

Most of the values are ignored, though
Remove references to ref type filtering
ref: return {ok, Name} tuple for the name in the NIF
Add a simple protocol helper
Fix pkt-line length
pkt: parse want and have lines