Make server and gateway configuration generators stateless
Move pre start stuff in generator and server listeners
Add stop server event
Fix gateway event name
Use Symfony FileLocator to load the configuration