added context and entity to directory view and removed inused

This PR added the context and entity to the directory view, we need it for the xivo-dird module confd to filter by profile.