Bethe–Salpeter equation for absorption and scattering spectroscopy: implementation in the exciting code. (21st August 2019)