Recording code style and misc improvements

Included are various style changes and small fixes to the recording code as well as some other minor changes around the Mixxx codebase to things I discovered during GSoC.