General repository reorganization

* got rid of useless tools dir
* expose everything via .Internal module
* put Hquery in the Text package