that part is not too difficult- but you have to make sure the voltage of the battery doesn't go below a certain level- so you can't just hook it up & go, there does have to be some thought to it, or the battery won't take a charge again..
also, the recharging is more tricky with Li-Ion batteries.. just make sure the charger you're using is intended for Li-Ion batteries