Bug 904068 - Implement build/settings.py in javascript

https://bugzilla.mozilla.org/show_bug.cgi?id=904068