Reverting settings
Reverting lib setting
Removing legacy code generation script and moving globals to settings.js