Got my e39 few weeks ago, it always trigger the traction control when driving in the rain, and have the same jerking symptom as you described when step on the gas hard when going uphill.
For my case, it is the rear upper control arm's bushing falling into pieces that cause the trouble.