Rewriting of the entire plugin.
Using a temporary variable to keep the plugin working with PHP5.3
file_meta function modified : remove arrays from meta array in order to
do an array_flip (warnings on my server on PHP 5.3 or 5.4, no problem in
wamp with PHP 5.5.12).