my idea would be to modify a smart battery tender. it already sees the battery and turns the charger on and off as needed. just need to find a way to put a relay in it big enough for an alternator relay.
altering this might be promising
http://www.electronicsforu.com/elect...tor.pdf&title=