Beginning of stats support

PHP module globals done the "new" way instead of old with ginit
and gshutdown - first pass at btree incrementor, think I'll change
to read lock and atomic increment instead of current code
local (per mmap'd file) stats round 1, having some issues with
add and timeouts atm
Test fixes also remove stats files
More test cleanup for stats functionality in place
all tests now cleanup after themselves
More fixes for more tests
Remainder of tests for global and local stats
also included ability to clear global cache via code
since it will be locked by the process
tests for all of it

Bugfix in the btree incrementor so a new node is set to 1 properly
Merge pull request #4 from auroraeosrose/stats

Stats