Since you've replaced the chain and cassette, my vote would be the shifter as well. I went through something very similar with my gary fisher mountain bike (sram x7). Chain would slip (dangerously) on steep climbs in lower gears. Getting that shifter to index properly is what fixed the problem (after a new chain, and then new cassette).. finally addressing the shifter is what fixed my problem.