Fixed javascript to allow all elements created by the browse site dialog that list content to add URLS.
Fixed a few problems with attachments.