Stat hat

Logs voting events to stathat :tophat: 

Fixes #224 


todo: ideally the stathat library should be turned into a composer package, instead of an include file :cry: 
:rage1: