Route for thumbnail generation

Related to https://github.com/owncloud/android/pull/586
we should be more precise on this catch block and return error codes