Fix imports
Add title handling methods for length

Titles may exceed the MediaWiki length limit.
We want to gracefully handle that, thus we introduce
a title formatting in three parts : a fixed front part,
a variable, and a fixed rear. Both fixed parts are kept as it.
The variable part is splitted based on its spaces, and as much
as possible is kept to fit the available length.
Add unittests for title handling methods

We add some test for our new title cutting method.
Add fields indexing during metadata retrieving

We want to index all used metadata fields, as they can vary
between records. To avoid a new iteration on all record, let us
do this during the metadata retrieving.
Thus add it to csv and file_path retrieving methods.
Merge branch 'master' of github.com:JeanFred/MassUploadLibrary