No, you can't cast spells or similar via familiar
The relevant part of the spell's description is (PHB, pg 255):
Spells and other magical effects can't extend through the dome or be cast through it.
I'd say switching to your familiar's mind counts as a magical effect, and casting spells through it certainly counts (assuming the familiar is outside the dome and you are within). However, the familiar should still be able to pass through the dome and act, just not using your magical abilities.
To address your question "If I switch my mind to my familiar inside the hut, and the familiar leaves LTH, does LTH end?" directly, switching your mind up your familiar's would end as the familiar leaves the dome (since that is a magical effect), but LTH itself would not end unless you physically left it.
Again, for "If I can switch to my familiar outside LTH, have I left the Hut, even though my body is still inside?", you wouldn't be able to do this as you're trying to use a magical effect outside the dome.