Add in alertify, fix bugs in app.js, add in socket wrapper