HOWEVER, most boards these days have a middle position marked on the mast track. The shaper / manufacturer recommends you play with positions before and behind that middle marker as it's not an exact science and performance is also influenced by variables such as your body weight, body height, stance (foot strap width) and preferred riding style (flat water, wave, bump and jump).
I have played with this a bit lately and it makes a huge difference to how comfortable and how balanced your set up is. 1 cm makes a big difference. Back improves your top end speed but may make it more difficult to force the nose of the board away for beach starting/ waterstarting, or down for high wind handling, so it's a compromise. Choose a point to start with (middle?) and then move the base 1cm, sail, move 1 cm, sail, until you find the optimum balance of comfort and speed. Optimum will change if the wind strength changes.
would personally say forward for upwind but that might be because on wave/freestyle boards you want more rail in the water and weight forward. not sure if this is the same for slalom.