Added listeners for AZPC events, will not work until pref with JSON posting enabled