Adding a simple place for resetting statics

More than just statics - global variables, connections, and the rest can
all be reset as well.
(cherry picked from commit c059c23ac3b9fdf28a8038abed417cea4a51aef7)
Merge branch 'master' of github.com:chrismcmacken/phptools