WIP: Use environment variables to configure Mattermost

Open Balasankar C requested to merge 2377-mattermost-env-variables into master

Depends on: !1959 (merged)

Closes #2377

Edited by Balasankar C