Essays on State Capacity: Bureaucratic Quality, Corruption and Patronage in Decentralized Bureaucracies