Modernize the deployment script, and show a spinner while require.js files are loading