Remove unused private function.
Fix the compatibility handling of "id" parameters to match between client and server and fix concatURL.

Also add unit tests for concatURL to specify the expected behavior and fix #line statements.