Fix bug allowing undefined to slip into resource load. Correct bad approach to getting cookies from socket.io requests. Add license file.