Implemented XACML PEP and fixed TCTP session handling