Now using MM.config.app_id as base folder in Android

Now using MM.config.app_id as base folder in Android instead of hardcoding com.moodle.mobile.
Fixed a minor bug in fileExists.
Now using toURL instead of toNativeURL (deprecated).