On the role of quasi-localized soft-mode vibrations in the boson peak and quasi-elastic scattering in glasses