Added in functionality for pdf's to be displayed in Weave through
FileReference. Need to add functionality for a URL. Smarter server
detection. Cleanup and move around code.