writers/output-handler: Refactor to pass out dir to writers

I.e., don't call into the output handler from the writers directly.
Allows multiple writers with different directories.
profiler: Remove the non-working experimental profiler