Review and port views implementation

Issue on drupal.org : https://www.drupal.org/node/2289303
Could we make this entity type agnostic?