apiFramework support + setDuration 

Hello,

This PR adds support for apiFramework attribute at `MediaFile` tag. This is required for proper VPAID handling.
As a side effect I've added manual override of setDuration (can be done based on VPAID changes).

I can squash commits into 1 or separate into 2 PRs if needed.