SLAM in the Dark: Self-Supervised Learning of Pose, Depth and Loop-Closure from Thermal Images