[Fix #39]Fix configuration load

Load configurations before starting the download of the application.
Configurations are stored in window and than are copied in angularjs
constants.