Revert b0cc97f..ad711f6

This rolls back to commit b0cc97f3e246d4cb2e5b54b28cc50cf02456036e.
Updated to use Craft's native helpers JsonHelper and IOHelper libraries