Minor refactor to scan only once
Maven plugin to help build optimized version of the portal
Refactor code to generate main.js and buildconfig.js into a common class