Some fixes and enhancements.
Rewrote the tag completion code and it is now very responsive - even
with around 8k tags.  Renamed all is_valid? methods to valid?.  Added a
message dialog when closing a booru tab while images are being saved.