Gut the use of AudioFlinger for recording and replace it with custom
RecordThread, RecordTrack and RecordHandle implementations.