The high-z universe confronts warm dark matter: Galaxy counts, reionization and the nature of dark matter