The boards of supervisors may establish almshouses and county farms, prescribe rules and regulations for their government and management, and appoint the necessary officers and employees thereof, who shall hold office during the pleasure of the board.