Taking the pawn on a3 was ill-advised; for several moves your opponent had the possibility of Rb3, winning the errant bishop.
I like 31... Ra2. At any rate, 31... c5 hangs the b-pawn (which your opponent didn't take advantage of).
Try 35... b4 36 Rxd5 b3 37 cb cb. Now 38 Rd1 is forced and you bring your king up toward the center and head for 1) the queenside to promote the b-pawn, if your opponent keeps his king where it is; or 2) the kingside to capture those pawns, if he heads his king over toward your b-pawn.
You can (maybe) hold that pawn endgame by playing 47... Ke6 48 Kd4 Kd6 49 f3 Ke6 50 Kc5 Ke7. The point is that you're always ready to take the opposition to block his king out (50 Kd5 Kd7; 50 Kc6 Ke6).
I'm sure I made a bunch of mistakes but it would be great to see what I did wrong specifically.
http://www.chess.com/livechess/game.html?id=183743297
I played black.
Thanks!