All `katja' methods now optionally take a pid

All methods inside the `katja' module (public API) now optionally
take a pid as their first arguments. This makes it possible to
pool `katja_metrics' and `katja_queries' processes.