Allow rendering of entities without an ID.

Refactors EntityView::getEditUrl()
and removes EntityView::extractEntityInfo().

Change-Id: I3c7eec765fc3e212614b4b21db76b07909ba640d