Move "cryptomedi" to webroot

The move has been done, and scripts/imports/img modified accordingly
database config is externalized
AppModel is renforced
fix signature of functions