The best advice is RELAX - stay loose and look ahead. And try to pump before and unweight over rougher sections. A rock can kick you off course a bit but with some speed, the bike will usually correct and keep on going (assuming you're looking ahead and don't try to correct).
Brake on smoother, straighter sections. Avoid braking on rough stuff and in turns.