updates endpoint concurrency features
splits connection test into two translation units
moves network related utility functions into network header
inlines appropriate functions to work when included in multiple translation units. fixes #178