Use default callgrind naming scheme, document module

Also serialize the *.cpuprofile to JSON so that the return value is always a
string.