server: create threads for new sessions

VERY evil code in standalone mode to kill the server thread on exit.
Needs something much cleaner.  Nuff said.