Big code reorg to improve organization and readability, reduced whitespace a bit
Big code reorg to improve organization and readability, reduced whitespace a bit

mlennon3/when,stevage/when,frank-weindel/when,tkirda/when,DJDNS/when.js,SourcePointUSA/when,mlennon3/when,frank-weindel/when,petkaantonov/when,caporta/when,anthonyvia/when,icodeforlove/whenplus,ning-github/when,caporta/when,SourcePointUSA/when,stevage/when,anthonyvia/when,ning-github/when,tkirda/when