Added hooks and Socket.IO to app