Copied from iPhone/AudioRecord with following changes: - rename classes for Cordova - fix bug in stopRecordWithSettings()