Hack to fix seg fault when the program quits.
Handle opening directories.
Cleaned up file update interface.
Added function to select dark file.
Added refresh functionality.
Added a directory watcher.
connected imagelist and imageindex to have the same value.
Added JSON database for comments.
Renamed to imtools to better reflect contents.