remove incorrect -R from chown in samba directory set up, as it changed existing rom files. Now we correctly
set root:$user for roms with the sticky bit set, with first level platform subfolders being root:$pi with group writable.
added some code to chown existing files to fix any set up where roms were copied with the wrong permissions.
there are other cases too, where roms are copied with the wrong permissions which this will fix, such as the install_zmachine
code which unpacks files as the root user
use rps_checkNeededPackages for fbalibretro depends installation
when installing from binaries, set up the samba stuff last, so that it can fix up any rom directory permissions.
Merge pull request #389 from joolswills/depends

use rps_checkNeededPackages for fbalibretro depends installation
Merge pull request #388 from joolswills/samba

remove incorrect -R from chown in samba directory set up, as it changed ...
Added RetroArch auto-config files
removed overkill import function. We don't need to search library paths etc, we know where our modules are.
more cleanups related to removal of import function
removed unused function getScriptAbsoluteDir
use .sh for scriptmodule extension as shinc is no standard (so editors can't guess syntax highlight by default).
split out package functions to packages.sh
split out emulators and libretro cores into separate module files - supplementary modules still to do
add functions for registering/loading the modules
split supplementary.sh into auto-loading modules
remove call to removed function registerFunctions
don't keep multiple associative arrays with module functions. We can determine them as needed.
change output of retropie_packages to show index and module id. since we are not hardcoding the index, it's possible they can change
so it will be a good idea to be able to use the module id
fixed emulationstation function naming
fixed xboxdrv function naming
use rps_checkNeededPackages for handling dependencies for depen_snes9x
simplify binaries installation code:
 - automatically install all depends, rather than a hardcoded list
 - use the textual id for installation, making it more readable than using the id and having to comment what each id is
 - don't hardcode the range of emulators to configure - configure all emulators and libretro cores
renamed the global associative arrays