Fix incorrect usage of va_args in TemplateTest.
When spawning an application process, infer its code revision so that it can be sent to Union Station.

This is done by reading from the REVISION file, or if the app root is a symlink and is called "current",
by reading the contents of the symlink.