Standardize include sort, white space, casts, add missing includes.

* VS static builds are fully-functional
* Centralized and simlpified cross-plat config reader
* Standardized include sorts and white space
* Made implicit casts explicit
* Added missing includes
* Verified build and spot-checked features on windows x32/x64 and ubuntu
* Verified config file reader on ubuntu with and without environment variable set