Clean up libdatrie code a bit

Remove file IO, use intptr_t as the value type
Refactor trie_retrieve->axe_trie_get, misc tiding

Refactor out trie_retrieve datrie function from the bulk of the axe
codebase. Also tidy a few misc function prototypes we'd deleted