- Add gallery_shutdown callback
- Remove extra post-routing code from index.php for now - it's recorded as a todo in the doc
- Tweak gallery module routes