Internal document storage and external document referencing