Refactor work with lists.
Implement new event routing using event mappers.
Improve jsDoc.
Add loading of event definitions. Change filename for routes from "map.js" to "routes.js".
Remove unused requires.
Make logger more safe and add window error handling.