Fix for multiple startup tab hang, fix for static analysis warnings

Changelist [d4c74ac](https://github.com/academician/console/commit/d4c74acb495c62ad8d2aa36443c02096dfbca592) fixed a hang I was having when starting with multiple tabs. I noticed that another change may have already addressed this, but it makes sense to only sleep for positive non-zero sleep values anyway.

Changelist [9979a0e](https://github.com/academician/console/commit/9979a0e16d5cf9c4b368d36e857f43733dcc7161) fixes several issues that MSVC's Code Analyzer feature found. It also normalizes some inconsistent EOLs. I recommend other contributors change their [git configurations](https://help.github.com/articles/dealing-with-line-endings) to prevent this. I didn't fix all line ending issues in the project, mainly just the files I changed; it may be helpful to just switch all files in the project to Windows-style line endings en mass.