Makes stathat.erl be a gen_server

Changes stathat the module into stathat the gen_server. 
This means that requests are really async, and the caller 
can ignore the httpc return values (but we can do something 
with them).