added validation that downloaded email alert is only sent if file had not previously been downloaded
implemented Document.active_documents method
started rake task for deleting expired files