Added new loopwriter class for threading and control refactoring.
Fleshed out class definition.
Removed old code that's no longer needed here.
Fixed compilation errors for basic class.  Continue to flesh out refactored threading implementation.
Connect signals and slots between loop writer and loop recording manager.
Added bool to control access to LoopWriter.
Major reorganization of control.  Still some issues with getting the event loop functioning correctly.  Not fully implemented yet.
New recording code using built in thread loop now compiles.

Only supports recording a file.  I haven't yet connected the other loop recorder features.
Added variable to track the remainder of samples when the loop length is not divided evenly by the loop buffer.
Changed loop start and stop functions from public to private.  Removed unnecessary slot.
comment clarification
Trim loops to specified beat length if given.
Fixed problem with buffer size measurement.
Connect signals for notifying manager that writer is recording and to tell manager to load and play a recorded loop.
Connect signals and slots for clearing recorder.
Updated calculation of loop length.