extracted partyFinder to applicationController.
changed how authetication is handled and added general execption handling.