mv entity_add_file() from entity to file module

Added a little error-catching and descriptive comments.
Logfile is now returned along with DDRFile object.
hook entity_add_file() into new file view
more careful abt date formatting on write; more forgiving on read