Move status report logic to lib/weaver.js