Would be fantastic to have the gateway event scripts pulled out of a binary file and added to the file system in plaintext.
I believe IA has already indicated that this is a task being addressed as things come up. This particular resource is a pointed headache for us in a lot of the situations we encounter.