Added the first JSON parsing for events list. Uses Perl's JSON module.
Merged the last changes.