AppController: Add mounted machine to constructor.
AppController: Fixed public path in previewFile method.