Reorganizing files within tools/macpo.

This patch makes the following changes to the directory structure:
 - Factor out common portions of the code into tools/macpo/common directory.
 - Move instrumentation-related files into their own subdirectory.
 - Use non-recursive Makefile for tests directory.