Added new policy for phase admin check.
Added new service for error handling.
Added more specified error message handling to socket error handling.
Added message attribute to common socket error.
Added 'hasPhaseAccess' method to check if user has access to specified phase or not.
Refactored hasTaskAccess policy to handle possible phaseId parameter and changed error handling to be more specified.