Move environment options further up the call chain

 * As suggested in,
   https://gerrit.wikimedia.org/r/#/c/177878/3/lib/mediawiki.parser.environment.js

Change-Id: I52f571e82aa503b885f61ad6823f927c189142cf