Hi. From what I understand, battery power is the "cleanest" of all means to power up a RPI. I know there are tutorials on how to use a powerbank as a RPI UPS involving the Ethernet port power drop. But this solution only (battery) powers it during a blackout.
How about this: Take one (fully charged) decent USB powerbank (maybe with a charge remainder display) and plug it to the RPI power port. Take one programmable power socket and plug the power bank charge port into that. Now figure out a program for the socket to power on and charge the powerbank before it gets depleated. Say once a week, the socket will stay on for one (or two) hour at night. This is based on the size of the powerbank and on how often the RPI is used. Of course one can't predict accurately for how long or how often the box is going to be used but I don't think charging the powerbank more often than needed will damage it that bad. Besides, I think a good powerbank has some kind of management of its own to avoid overcharging.
So do you think this would work? It's a really simple solution and your RPI would be both powered up from a quality source and be protected.