static - maintain the existing URI parameters when add "login" - fixes #175

This now manage the following possible URI:

* mapfishapp/
* mapfishapp/?

that will give mapfishapp/?login, and

* mapfishapp/?lang=fr
* mapfishapp/?lang=fr&

that will give mapfishapp/?lang=fr&login

Taken from OpenLayers urlAppend function