Common lib: make server location parsing more robust, minor code cleanup.
Client lib: replace server location conversions to string with stream insert operator. Change return type from string to constant server location constant reference.