Added .ifthen() method.

Just like .then, but takes a conditional as its first argument. Then
handlers are only executed when conditional is truthy.