Projectkk2glider/frsky refactoring

Re #1423

I haven't tested any of this! Please review.