Add thumbnail API

... so we can start using it for media library, etc.
I should probably remove this entirely and open a follow-up in media_entity issue queue. We will use rendered entites for library. At least until this is fixed.