added event catch for socket
added module binding for the application.js
moved template logic into layout and layer out pipes for backbone routing