Implement __sleep() and __wakeup() magic methods on EntityBrowser

https://www.drupal.org/node/2385667