Move cscript/rhino console support to separate file