Renamed to just delegate.js
Added quick hashing algorithm	to hash event name and function into number for optimised storage.
Added comments.