Reorganize and begin extracting KO dependendies to support vanilla JS use.