Fixed the automation of geoserver tst environment.
Refactored some scripts.