Fixed compatibility with MODX 2.3, updated API integration