Now a picturesque destination for tourists, Prague has been an imperial capital, a flashpoint in religious wars and the site of communist crackdowns.