Numerical Modeling of Energetic Electron Acceleration, Transport, and Emission in Solar Flares: Connecting Loop-top and Footpoint Hard X-Ray Sources