Cleanup and fixed some restart issues

Fixed when forever will restart when cloud9 is running as the IDE. Previously, it would detect a change in the cloud9 revision file, and would restart the process -- using unnecessary amounts of CPU. Also included are some small cleanups. No breaking changes.