Wait for listen callback 

Need to wait for listen callback before calling server.index()
http://nodejs.org/api/net.html#net_server_address