Output server vars with join().

In CLI sapi, argv is in server and is an array. The old output would
cause an error.
Fix CLI profiling.

Use the command name as the 'uri'. Also fix notice errors caused by
there being no URI to use.

Fixes #59