Text this: A Unified Framework for Absolute and Relative Pose Estimation of Spherical Cameras