Bug 873064 - removed cloudfoundry-env.js and environment.js; removed dependencies on environment.js in 6 files

https://bugzilla.mozilla.org/show_bug.cgi?id=873064

cloudfoundry-env.js and environment.js contain dead code which has to be pruned