refactor CodeFileScanner
fix mimetype issues
activity interface to controller