Added environmentMode field definition to scaffold base

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added environment mode to mail journal

Signed-off-by: Tom Wright <tom@inflatablecookie.com>