The Tetrahedron algebra, the Onsager algebra, and the sl2 loop algebra