Move middlewares under hooks
Fix styles init when main file not found
Restore bundles section