Higher-spin algebras, holography and flat space