* Added guards around cookies and sessions to PrisonerDetailsController.

[#81200540]
* Moved cookie- and session- checking logic to a separate module and added inclusions
  to each controller.

[#81200540]