(feat) Move queue logic into server

This PR removes all queue logic from the client and puts it in the server. It appears to work correctly for me locally, with no other users in the room. This should probably be tested and refactored. Index.js is commented heavily so you can see what I did.