Adjust encoder again to include global encoding events.
Simplify usage of file manager, and add fileinfo.path attribute.

The uploaddir is not dynamic, so an uploaddir function isn't really required.
Switch dependence of encode route to be on encoder, not on upload route.