Added thread settings icon. Made markup validator-friendly.

Other minor fixes.