Move instrumentation code to a library.

This patch relocates all of the instrumentation code into libmacpo.so. This
library is now called by a driver code located in tools/macpo/inst. The purpose
of this patch is to make it possible to integrate MACPO deeper into PerfExpert
as a library/module.