Implement `when` directive.

File                             Raw         Min         Zip     Min/Zip
index.js                 30991/30.26 10089/09.85  7622/07.44  3855/03.76

Closes #61.