Support for custom trace attributes.
Change communication between application threads and trace writer thread (now a queue), make trace file writer available via spylib.