Add code for content based compare

This pull adds sha256 hash based content compare of duplicate classes/resources with the avability to control the build result - should it fail on duplicate but equal elements or fail only in case of content different elements.

Also add two simple ITs for testing.