Bug 1084542 - Move shared code from Back/ForwardButtons to NavButton. r=lucasr