Add a preview for the selected entity in WYSIWYG

d.o issue: https://drupal.org/node/2280547
Drupal\Component\Serialization\Json and Symfony\Component\DependencyInjection\ContainerInterface are no longer needed here.