Generic Event Listeners

JAVA 8 REQUIRED!

Added generic event listeners.
The basic syntax for registering any
listener:
$.on(EventType, Callback);

Example is in generic_events.js

ToDo: Add and load nashorn.jar to provide JRE 7 compatibility.