Fixed stats

made tree icon clickable
Tree nodes count fixed (includes spouses now)
Blood relatives count fixed
moved function to fun.php for re-use