Ab-initio simulations of metallo-proteins: structure, dynamics and XAS spectra