Structure and dynamics of high temperature superconductors