Ported pico_ql_internal.h, pico_ql_register_serve_c.erb,
and pico_ql_wrapper_retrieve_c.erb for Valgrind in master.
Enhanced the respective Ruby templates for C++ (cpp.erb).
Removing Valgrind-specific versions according to the previous commit.