Fix perlcritic issue and tidy lib files
Major improvements

This patch introduces a lot of changes in hea-app:
- replace donut with chartbar
- library_id is now based on a md5 hash
- csv are not written on the FS
- all volumetries are sent to the template
- all sysprefs are sent to the template