enabled the resource retrieval system to get images based on lang/region as well as text strings; fixed a bug in Model::addAndGetId() which compared execDML to 1 (cannot convert to int);