Refactor of backend code, more standardized folder structure.