optimized app.js to load the needed foundation components
added login and sign up modals, splitted local and cdn based configurations for requirejs object