Remove redundant data from internal index nodes.

Summary:
 - restructure and abstract TmpIndex.
 - remove leaf data (formula_id and hits_count) from generic
 index nodes.
 - closes #33.

Test Plan: make test

Reviewers: radu.hambasan

Reviewed By: radu.hambasan

Differential Revision: http://phab.code4fun.de/D66