Added minigame support; added resource libraries; refactored utilities