Refactored the video handling in main controller. It's now much more streamlined. New helper-class and moved previewview to its own file.