Enhanced scan file handling.

Added support for listing files, deleting files and emailing files.