add util method for delaying
package.json: add more deps; remove grunt
migrate plugins
remove gruntfile
migrate lib/switch.js to cortex