Remove billing dir, those files don't belong there
Add various debugging functions and a simple circular buffer implementation