Implement 'env' dictionary instead of 'export_macros' array.

Revamp notification runtime macros too.

Refs #5855