Moved counters from entity body to header.
added relationship/children counters
namespace cleanup
removed unused field <dri:repositoryId/>
merged from branch 0.0.4