Add tox, statistics WIP.
Add statistics cacheing, tox, minimal testing.