Add list, refactor queue
Document list.c
Clean up log output a little
Better login/logout management
Add packet decoding/encoding