Switch static directory to dist when deployed + cleaning

This adds a configuration parameter for which directory will serve static assets and sets it to `dist` on awsbox.

Plus it cleans more unused modules on the server.