Improvements

@lovenunu @roadster31 could you please check this PR ?

Sorry it's a big PR and I should have split it in multiple. 

It's mainly an improvement of the default frontoffice and pdf template : UI and performance.
It also contains fixes for small bugs and typos.

Thanks.