Remove unused app.connections & fix leak

The server is leaking connections because of my half-done removal of app.connections related code.