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.