Add in 406

Added in Mike's 4.0.6 and 4.0.7 stuff.
Added in a option for enterprise customers to use either prod or dev environments.
Version bamp!