Note that 'Gateway Events', as in 'Gateway Event Scripts', are a regular project resource and already stored on the filesystem. Their actual storage format is also planned to be revamped in 8.3, so that they're broken up into distinct resources in a human-readable format, but that's orthogonal to gateway configuration itself (db connections, device drivers, etc).