Updated gradle build settings.
Added generic message listener.
Use generic message listener.
Added generic data listener.
Use generic data listener.