Moved the logic out of js folder, into root, which servers better when its git cloned to be used right away, improved the root directory finding, should probably load stuff necessary for first step, then stuff necessary for second step then configurations and map making and moudle sorting
Forgot to commit moved stuff