Correct copyright notice
Update to use new environment output/render methods.
Create separate environment implementations for CLI and HTTP contexts.
Move alert handler initialisation into the environment.