Added JS event for when the user changes the directory

This enables apps to detect directory changes which might be caused by
the user using the browser back button.
Merge pull request #5769 from owncloud/files-changedirjsevent

Added JS event for when the user changes the directory