Backup battery charger
keyword: power path controller, ideal diode

something like that http://www.linear.com/product/LTC4417

look also at others vendors, like TI, Fairchild, On semi

Implementation is possible with discrete components only, cheaper but less efficient.