Add tests for new leakybucket methods and fixup broken logic
Rename api_key -> apiKey
Use 'error' not 'fatal' in test failures
Use camelCase, log panics with timestamps