add js namespace define file
move window.LDR_VARS to LDR.VARS
add LDR namespace prefix to pref.js config params
move proto to lib/utils
Merge pull request #64 from mizchi/js-namespaced

initialize js namespace as LDR and refactor prefs