Indent app.coffee
Move socket code into tispec.SocketManager