stats.tt: use printf instead of repetitive echos

As suggested by Eduardo Bustamante, use printf "%d\n" n1 n2 n3 ... instead
of (echo n1; echo n2; echo n3; ...) because printf loops through the
arguments.

Seems a lot cleaner and it is way more maintainable.
GNUmakefile: blatantly imported Caddeus 0.2

The file was taken directly from Caddeus 0.2 and local changes
were imported to it: just the definitions for the app, the .tt
and the .o (as no-test).