Towards Ab Initio Simulations Of High-Temperature Superconductivity