Major refactor for organization

Major code refactor for organization. This contains mostly changes to separate out the inner workings of Chronos from the UI shell.