[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.

Change the default root path of API and of the web application.