Fixed numerous really really annoying bugs omg, added checking for files...

... with the same filename on download and rename if clashes, added text to show file completion, restructured chat layout