Rename dist config.
Rename dist config and move middlewares and components to one level up.