Logfile download

implements / fixes https://github.com/owncloud/core/issues/12731

TODO:
- [x] add unit test
- [x] add warning if log file is bigger than 100MB
Maybe check for `FALSE` and return 0 then?