Get the layer location with a DataLocator, that allows for easy testing.
Layers does not return the data folder but a Location is returned by a DataLocator.
Changed all the tests to not have the data folder.
LayerFactory creates the layer configuration folder if it doesn't exist. It's the users of this API the responsible to check if a layer exists or not through LayerFactory.exists(). Therefore no more NoSuchLayerException.
Layer location is resolved using the GeoServer data folder. Therefore it is passed as parameter to StatsIndicator
Fixed bug on the -gsdata parameter and added support for shapefile folders.
Added tests.
Give info about the success or failure of the execution
Support statistics for postgis layers