A port of fynyky/reactor.js to Objective-C.