The Electron-Phonon Interaction From First Principles