Added TraceLogger to get backtrace for executed queries

Added a TraceLogger that returns a backtrace for the executed query.
The backtrace returns the last 10 frames, and it also formats the frames for easy reading
@Ocramius some people have already complained about the memory usage of storing *queries* in memory for the profiler. Traces are much bigger