MOBILE-427 Refactor init
MOBILE-427 Add gitignore
MOBILE-427 Refactor loadLayout
MOBILE-427 Refactor loadSite
MOBILE-426 Remove gitignore - it shouldn't be part of this branch
MOBILE-427 Refactor saveSite
MOBILE-427 Refactor moodleUploadFile
MOBILE-427 Refactor wsSync
MOBILE-427 Remove vim swap file
MOBILE-427 Refactor handleExternalFiles
MOBILE-427 Syntax fixes
MOBILE-427 Refactor handleFiles
MOBILE-427 Set up test environment
Initial refactor.
Merge branch 'MOBILE-427' of https://github.com/tonyblundell/moodlemobile into MOBILE-427

Conflicts:
	lib/mm.js
Initial refactoring redone after lost in the merge
Tests for mm.js
Spelling and commenting fixes in app.js
Additional functions for ease of testing in mm.js
SpecRunner.html to include the matcher.sequential.js file
matcher.sequential.js as an additional testing method for Jasmine
mmSpec.js as the test suite.
More test cases.
More tests!
Slight modification to mm.js for testing purposes.
Additional tests
Fixes small bug in mm.js + comments.