refs #5920 implement cases and tags import
refs #5920 fix validation on file api; add new IM api
refs #5920 finish attachment handling
refs #5920 add stats report
refs #5920 split trash functions out separately; rework script structures to work together