Hyperspherical trigonometry, related elliptic functions and integrable systems