profiler support added.

add profiler class for measuring performance.
ran through valgrind and fixed memleaks
audio frame print stats causes crash. need rework
audio frame print status changes
and more memleak fixes
now only leak in the code is log4c_init related
more profiling hooks