Moved some functionality from Document into the app delegate.
The distribution downloader's Open button now works.