Refactored xhp code for task and problem-set. Fixed /problems for non-participants.