Add Relationship class, class for relationship entity.
misc
misc
Fix broken test cases.
Move result generator to quiz controller.