implement similar lifecycle for socks session as for socks server, with tests
Merge branch 'dev' into trevj-session-lifecycle
Merge branch 'dev' into trevj-session-lifecycle
fulfillXXX and onceXXX naming and rename session.onceclosed session.oncestopped
rename shutdown_ to stopResources_
onceStopped should never reject
comments and extra handling for calling close on resources
no need to specify closure behaviour on this test
add note for unit tests on negotiation methods which are mocked out by several unit tests
Merge branch 'dev' into trevj-session-lifecycle

Conflicts:
	src/socks-to-rtc/socks-to-rtc.spec.ts
	src/socks-to-rtc/socks-to-rtc.ts
do not double close tcp server or connections
extract a no-op promise and add comments where its used
remove close from session definition
Merge pull request #141 from uProxy/trevj-session-lifecycle

implement similar lifecycle for socks sessions as for socks server