Add some protection against corrupt images in Set thumbnail.
Merge branch 'develop' of https://github.com/geonetwork/core-geonetwork into develop
Merge branch 'develop' of https://github.com/geonetwork/core-geonetwork into develop
Add logging and postgis datastore support.

Merge to gn develop
Configure the sequence used for the ids of integer based ids in the domain objects.

This is required so that the initialization phase can add data to the tables via SQL and still have the sequences be high enough to not cause conflicts.