Implement `insertIf`.

Implement `insertIf`. This is accompanied by a tidy.

Closes #22.
Tidy `lib/compiler.js`.
Merge branch `insert-if` into `master`.