Incremental clean up of paths without trailing "/":
- Rename FileUtils.canonicalizeFolderPath() to stripTrailingSlash() since
it actually makes paths NOT canonical. Old API left in place with
deprecation warning for now.
- Add warning to docs for a few other APIs that return non-canonical paths:
FileUtils.getNativeBracketsDirectoryPath(), FileUtils.getNativeModuleDirectoryPath(),
ProjectManager.getInitialProjectPath(), ProjectManager.updateWelcomeProjectPath()
ProjectManager._getWelcomeProjectPath()
- Indicate explicitly which ProjectManager APIs support receiving
non-canonical paths
- Centralize code that touches welcomeProjects storage pref for clarity

What this does NOT do:
- Fix the other APIs listed above that still return non-canonical paths
- Fix non-canonical first-launch project path given to _loadProject()
- Fix non-canonical paths used in RecentProjects prefs
- Fix non-canonical paths used in welcomeProjects pref
- Fix ScopeManager, which in some places requires canonical paths and
in other places requires non-canonical paths
Fix some APIs to work with canonical paths (ending in "/") instead of non-
canonical:
- ProjectManager.getInitialProjectPath() - always returns canonical
- ProjectManager._getWelcomeProjectPath() - always returns canonical
- ProjectManager.updateWelcomeProjectPath() - arg assumed to be canonical &
always returns canonical

None of these APIs are used in extensions.

This does NOT change the underlying "welcomeProjects" pref - like
"recentProjects", it still stores paths without trailing "/" under the hood
preview images
fix menthod name + jslint
fix DocumentCommandHandlers tests
- add test case to validate the EditorManager APIs getActiveEditor, getCurrentFullEditor and getFocusedEditor return null after opening an image
- add test case to validate the EditorManager APIs getActiveEditor, getCurrentFullEditor and getFocusedEditor return en editor after opening a text file
- resolve promise on opening image
- update test case to expect no current document when image is open
fix bug found during test development: fire currentDocumentChanged when image is replacing a text document
- add unit test for prettyPrintBytes (+13 squashed commits)
- add test case for clearCurrentlyViewedFile
- add test case for getCurrentlyViewedFile and setCurrentlyViewedFile
- add test case for clearCurrentDocument
- add DocumentManager integration tests
- add test cases to verify that currentDocumentChange and activeEditorChange events are fired correctly
- fix minor nits: update jsdoc + format + copyrights + style +  quotes + comments, remove unused vars
- refactored & simplified some code around removing custom viewers per suggestion by @RaymonLim
minor nit + typo
fixes for various nits found by @RaymondLim in code review.
Merge branch 'master' into couzteau/preview-images-review

Conflicts resolved
	test/UnitTestSuite.js
fix test case - per @RamondLim. Thanks for the extra pointer.
Trigger a close event on the NodeConnection whenever the underlying socket is disconnected and, if set to auto-reconnect, include the reconnection promise
Code review: Consolidate code that adds trailing slashes; make empty-string
behavior more explicit
Fix bug #4593 (Wrap text in context menus & HTML main menus) -- see bug
thread for all the gory details. This fix preserves the current layout
(where label & shortcut are not two strictly separated columns), but the
downside is it may not work in other browsers.

May want to revisit later for that reason, but in the meantime this will
improve the Linux build (which has no native menubar yet).
Peter's review feedback
-  FileViewController now listens to EditorManager's currentlyViewedFileChange event instead DocumentManager's currentDocumntChange event. This removes the need  to update the EditorManager's currentlyViewedFile property when setting the current document, i.e. by using the FILE_OPEN command.DocumentManager gets smarter about sending currentDocumntChange events, i.e. it won't send its clear method is called and no document has been current.
- rename CurrentlyViewedFile to CurrentlyViewedPath
- remove obsolete exports
- remove         _$previousCustomViewer
- jquery prefixes
-  no dependency on ImageViewer in Editor Manaeger
Issue #5517 - css quick edit blank line number fix
Create a new command file.openDroppedFiles so that we can support folder drop on Brackets app.