Configurable stats intervals for link usage

* use configurable stats intervals for link usage too
* fix label in top AS when short_open_tag is off
* refactor statsfile/label handling