Added explicity shutdown for code engine
Pulled environment handling out into a separate concept
Allowed environment not to contain editor engine and added start to environment command
Updated at and ct with a version that also listens for event endpoint shutdowns