Why not just arrange it so the battery lights the LEDs and the dynamo charges the battery? You would just need a diode to ensure that the battery does not discharge through the dynamo and probably a linear regulator to ensure that the dynamo does not overcharge the battery.