Statistics!

The DAO version of leg_bot now has stats!
The code needs testing to see if there are bugs to be squashed, but I am getting there!