add repond_to to ApplicationController
robustified currenty entity lookup
robustified registration of selected entity
add the current user's email address to the header
finished saftey checks around entity_id cookie