Many particle approach to excitons in crystals: Electron-electron and electron-phonon interactions