Add deeper module support and auto-detect for routes, services and events