fabfile:

Refactored the geoserver REST API code to be more concise.