Relocate socket.io calls to main page

Will be working on some template changes that would help warrant this.

Having it in the main template would be a waste of resources for
socket.io/passport on the server-side, produce unnecessary HTTP calls
and increase render time on other pages anyway.