Merged with latest master.
Added function to close not existing files.
Fixed problems, everything working (?).
Fixed formatting (sorry again! :P)
Removed exports.
Other formatting issues...
move variables closer to the point, where they are actually used
use find instead of filter; fixes bug because array was passed into closeFullEditor before this
fix formatting; use lodash instead of jquery; use native trim on strings
use reduce instead of map, because this is not 1:1 mapping
Merge branch 'FezVrasta#closeAfterSwitchBranch'