Refactoring work
mm.fs.js: console.log statement changed to an errorLog statement call which includes a stack trace
mm.js: a new function errorLog used in mm.fs.js
mm.lang.js: Missing space in loadLang log statement
mm.panels.js: Indentation standardised on 4 spaces to a tab ( in some cases it was 2 )
mm.rdebugger.js
Created function _getBaseURL that returns a url that was previously passed around
the object.
Success function for getMessages split out into its own function _getMessagesSuccess
deQueueing of responses split out into its own function for ease of readability.
function streamPage renamed to _streamPage to make it clear it's only called within this object
mm.sync.js: function syncProcess renamed to _syncProcess to make it clear it's only called within this object
mm.util.js
overflowScrollingSupported rewritten to remove if statement.
removed unused variables from getMoodleFilePath
refactored getMoodleFilePath to have a single return statement.
mmSpec.js: Additional tests
Others: spelling and whitespace.