The "powerpath controller" devices made my Linear Technology do what you
are looking for in a single chip. IIRC Maxim and TI have similar offerings.
Even if you are not interested in these particular devices you should be able to
find schematics and application hints in the various datasheets.
(* jcl *)
www: http://www.wiblocks.com
twitter: http://twitter.com/wiblocks
blog: http://luciani.org