Logging profiler logs in start/end query functions.
Logging profiler logs in start/end query functions.

This fixes missing log output for QUERY_MODE_EXECUTE (#41) and additionally
means that the the "prepare" query is logged in the the same way as users
normally see on the zend debug toolbar.

bjyoungblood/BjyProfiler,PatidarWeb/BjyProfiler