s/malloc/calloc/
fix a bunch of window delete stuff, add chat cycling