Route for thumbnail generation

Related to https://github.com/owncloud/android/pull/586
Good idea.
Unfortunately I do not know which exceptions OC\Preview can throw.
For the android app this is sufficent: if the route returns null the app will display the default image, otherwise the correct thumbnail.
But of course, a more detail exception is more useful, if this route is used by others...