Server-side refactoring

Major changes to the directory structure. Needs to be redeployed on the edge server.
I've tested about half of the modules and the auto recipe works.