Calculates modules' base_url value based on the module's main file
Replaces module base_url variable in favor of require.toUrl()
Makes modules load js and css dependencies using RequireJS

- Improvements to the app's descriptor structure
- Creates globals module to simplify the passing of global variables
- Refactors login & dashboard code