Add file full path in the output mapping file, and add options to control it

Basically redo the #5 idea on top of the lastest version.

I found outputting non flattened output to be more useful. It handle two options: `basePath` for the relative to path, and `flatten` if anyone preferred the old behavior.

Let me know if that's working for you or if you'd like some revision!

Thanks