Implemented the event hooks for the standard events

Refactored the package and moved rx.lite into a libs folder.

Refactored the app.js file