I might get flamed for this comparison but the footwork is actually kinda like a daffy butter. For the front 2 out you want to put pressure on the heel of your front foot and toe of your back foot. To get familiar with it practice using this motion to come out of the rail regular instead of switch.
To do a front two:
1. Make sure the rail is centered underfoot, and that your skis are perpendicular to the rail. If you're sliding off one way or the other at the end of the rail you'll have a much harder time.
2. Start to crouch down a little bit, and coil your upper body in the opposite direction that you're going to spin (just like you're about to 3 a jump). As you do this, apply that toe/heel pressure as described above.
3. When you reach the end of the rail, jump up and uncoil your upper body. Complete the rotation just like you would a 360, look over your shoulder in the direction of your spin and spot your landing.
4. Land switch and afterbang away into the sunset, content in your mastery of the skiing art