fixing bug on renaming folder (issue #259)
replacing getScript() jquery method by loadJS() method - closing #261
replacing getScript() jquery method by loadJS() method - closing #261
Move the external config file

Move shared config file into a config folder. Added __DIR__ to path in to
support the use of project in vendor folder as root.
The default config file as a separate file is removed. Users are free to
create a backup of the file or come back to the repo to re-download. There
iss no clear benefit to loading 2 files and merge the arrays for every
operation.
The config file is also a JSON file and should have the correct
extension.
replace mktime by time to prevent PHP error when E_STRICT is set
Declare the root first when contructing new Filemanager object.

Declare the root variable to before getting the config. Use the root variable
to fetch config file.
Add new "path" group to the config file

Create a new group for specifying all options related to paths. Will add
more paths like projectRoot for specifying if Filemanager itself is not
in the root directory (ex. vendor folder instead).
Path to directory should end with '/'

Path pointing to a directory should end with '/'. This allows a better
context when defining relative path in the config file or when passing
the path parameter. It's more obvious when the relative path doesn't
start with '/'.
removing useless instructions
Refactor getfolder()

Create new variable for storing results from function call for reuse.
The function shouldn't be calling the same function over and over.
breaking some long line of code to make it easier to read as well.
Fix config file to point to a folder inside project that can be used
as sample. Also switch the file path convention to be inline with the
previous commit for relative path without '/' at the beginning.
Add new filemanagerRoot config

The filemanagerRoot is used to point to the root of the filemanager
itself if used as a plug-in. A common scenario would in
"vendor/filemanager" if it is used in another project.
Update paths in JS to be relative to project folder

The paths in the JS file is now referencing to
config.path.filemanagerRoot to get to the file. This allows the
front-end code to continue to work even it's not in the root folder.
Move fileConnector in config to "path" instead of options so it sits
with all the other paths.
Correct the directory ending constant

Accidentally used DOCUMENT_SEPARTOR instead of DIRECTORY_SEPARATOR.
This commit fixed this issue.