Spin glasses and glassy dynamics