Export loadedSettings so it is public to other modules

And clean the useless parameters forwarded from functions to functions.
Clear loadedSettings before reloading it

Fix an issue introduced in 137a6d51f44790aa2757f8fef84e7daa3dd43ff7
(each time we would reload the settings, it would be appended instead
or replacing loadedSettings)
Implement full snippet upload

Handle create, update, delete of individual snippets.
Will fall back to classic zip&upload if any snippet upload fails.
Fix zip upload fail message
Update bridget.nw build
Change user-agent for restler calls.
Find the good path of the changed file. Fix #19.

Try to find the longest path containing the watched folder name. This
is the path of the template to upload to.