refresh() now resends everything it can

Other cosmetic edits to tiles, add log.debug, etc.