Transcode files during import

This is a reference to issue #135.

I chose to implement this feature using the convert plugin because I thought it would make sense to not duplicate some functionality and configuration.

There had to be some hack, using a global variable to cleanup temporary files. Maybe this too will need some clean-up/refactoring.