Added the router, primus.js script, and basic event handling.