Fixes indentation from previous pull request
Merge pull request #15 from moodlehq/indentation_fixes

Fixes indentation from previous pull request
Merge pull request #14 from moodlehq/FIX-MOBILE-468

Fix mobile 468
MOBILE-453 Disable fails over http (fixing regression on merge)
MOBILE-453 Fix previous commits

rewrite to be else if ( ... ) as there's no point ( in this case ) for
going:
if {} else { if {} }
Merge pull request #16 from moodlehq/MOBILE-453

MOBILE-453 Disable fails over http (fixing regression on merge)
MOBILE-401 Files with wite spaces (in the file name) are not opened once stored
MOBILE-401 Fixing tabs / spaces
Merge pull request #17 from moodlehq/MOBILE-401

MOBILE-401 Files with wite spaces (in the file name) are not opened once...
Fixes DB issues, with site specific collections being added under the current site id,
removing the requirement on models to have the site id appended to their id.
Revert "Merge pull request #14 from moodlehq/FIX-MOBILE-468"

This reverts commit f59d788907d83a52720cc50168ce199aa8e46a57, reversing
changes made to 13c4f59ae5a851f111920dfc04515f1497748e01.
Merge branch 'FIX-MOBILE-468' into master_with_468

Conflicts:
	lib/mm.db.js
	lib/mm.js
Getting a collection needs to check whether the current site has already been found out before requesting collections from it
Merge branch 'FIX-MOBILE-468' into master_with_468
Courses storage still needs to be created
Merge branch 'FIX-MOBILE-468' into master_with_468
Fixes logout
Moved arbitrary menu buttons to their own block, main index page changes to reflect the new plugin, config.json told to load the new plugin
Fixes to maintain login when refreshing the page
Merge branch 'FIX-MOBILE-468' into release_candidate

Conflicts:
	lib/mm.db.js
	lib/mm.js