adds helper functions previously added to Omeka app

Early in the theme development process, these helper functions were
added to ItemFunctions.php and FileFunctions.php. Adding them here
instead so users don't have to modify Omeka core files.