Refactored weave plugin to use when.js. Closes troopjs/troopjs-jquery#12