first, rough version

@carlaschroder lots to do still - I'd like feedback especially from Jennifer, but also @dragotin @karlitschek @danimo @LukasReschke @PVince81 and others ;-)

Mostly on the gaps and the questions in there...
Note: this can be done across repositories, not only in owncloud/core. @MorrisJobke found a magical query to do that