add script to unregister from wmstats agent when agent is retired or inactive

Steve, please review