Enclose artifact generation process into Makefile.

Completely decouple the build process from Travis and other things we
cannot control.
Include sample count and sum in Proto output.
Introduce histogram purging support.