Numerous changes

New class: tpl

appui\mapper:
- Accepts decimal type
- Disable keys before updating

db\connection:
-new_id adapts to the primary length

file\image:
- Added static function pdf2jpg

mvc:
- Implemented tpl

str\text:
- bugfix in encode_filename

time\date:
- bugfix in format

user\connection and user\manager:
- replaced config by cfg