Moved domain-model.ts to app/ folder.
Refactored History controller to separate file
Refactored totals into its own module