properly stop connect io
add persitant peer example
add version
some resume fixes
add persistant / resume impl and basic tests