Massive refactor to split the webapp into different apps with minimal dependencies between them.