Moved xalloc_srs and xrealloc_srs into libcommon as xalloc_unsigned and xrealloc_unsigned
Improve naming of start_listener functions

Formatting fixes