Refactor genericEntity into directive.

This enabled further customization of an entity per render area. For
example, generic entities in main search results are not selectable
anymore, but you can select them on result pages.
Add "cut" directive, enhanced limitTo for strings.