Implement usage of forks OR threads for multi conn

Multiple connections can be handled using threads or forking as
indicated at compile.