REST API for thumbnails

This replaces https://github.com/owncloud/core/pull/10805, changes:

- Code style fixed
- Exception thrown in case file is not found
- Route does not use GET parameters anymore
- Now REST instead of OCS

@georgehrke