Relocate to use WMCore, fetch archived datasets and some ReqMgr info, and improved output tier detection