[Fix #39]Fix configuration load

Load the configuration file before starting the download of the
application.

Configurations are stored in window and then are copied in AngularJS
constants.

Change the default root path of API and of the web application.