Changed to the new session, environment format. Removed the JSON notifier as it is impossible to test and breaks compiling in the new format