move already-have-IP check from OSPF autodisc to new IP discovery function, add print_debug() function to ease writing debug output

git-svn-id: http://observium.org/svn/observer/trunk@4227 61d68cd4-352d-0410-923a-c4978735b2b8