J-8 (another part) - fixes for jdk7 and hudson jobs

The tests cases were not independent due to adressing resources with fixed id-based paths, whereas the "db" state was preserved throughout the test method calls.

Do not approve yet - one fix is still missing - to be discussed
Fixes majority of issues with jdk7 build (still with source level 1.6).
QualitySourceTest has still one testcase failing, will be delivered after discussion.

Change-Id: I05f888a53ad6949b3273938b3a1a062714fbec64