Moving most xhprof work to module, which fixes bug with it not being found for PHP 5.4 on ubuntu. Fixes #410