[lib] Reset the PhoneGap/Build listeners on initialization.