Fix memory leak.
Added support for wip-tracks and wip-karts directories, which are only
used when artist debug mode is enabled.