Add autocomplete for entity selection

https://www.drupal.org/node/2360725
Would it be nicer to inject entity manager?