Split ingress main files into context-specific ones

This PR leverages the main index file's loading of all script files in `/src/` and splits the one file into smaller, more manageable ones.