Octonions and supergravity