Edit server.js

Use sid from header instead of cookie. https://github.com/deployd/deployd/issues/216