skytools.stats: wip - split into more files, added features, extended metrics and handlers, experimental integration with BaseScript.