Adds .shell_control and updates many scripts to use it.