BUG UPGRADE MORE THAN 160 WS.

When you try to upgrade more than 160 ws in a single PM instalation a TO MANY CONNECTIONS ERROR happens, and this stop the ws upgrade.

When you make the upgrade of many ws, each ws opens a new connection to the DB, and this is closed only at the end of all ws upgrade, so this cause the TO MANY CONNECTIONS error.

To solve the problem I kill the connection to the DB at the end of each ws upgrade.
Merge pull request #2524 from Jennydmz/master

BUG UPGRADE MORE THAN 160 WS.
Merge branch 'master' of git://github.com/colosa/processmaker into BUG-15524
BUG 15524 "Mantener el Idioma de la URL..." SOLVED

- Mantener el Idioma de la URL al iniciar sesió
- Problema resuelto, al iniciar sesion con un determinado idioma en la url y cerrar sesion, al iniciar sesion nuevamente
  en el login el idioma se mantendra al idioma definido en la url, tambien se adiciona una opcion mas al guardar la configuracion
  del idioma cuya opcion es "Use the language of URL".