Added support for WordPress 3.5's Media workflow with file fields

If the environment is WordPress 3.5+, the new Media workflow will be used, else it'll fall back to the previously used Thickbox implementation.