Add if flow

Adds something similar to what is discussed here http://joseoncode.com/2012/06/24/messing-with-cps-in-js/ and what we talked about https://github.com/Clever/clever-common/pull/68

Allows us to write that code to https://github.com/Clever/clever-common/pull/69
Not 100% sure if I understand what you mean here. I should be following the convention of cb (not next) and (err,res) format - done in 0ec6061. Should I be doing anything else?