Budget Management in Auctions: Bidding Algorithms and Equilibrium Analysis