Node-ify modules, separate out render loop and step loop