Updated visibility definition creation algorithm to best balance object re-use and new object creation for different settings of object id, type, and permissions. Solves issue discussed under http://forum.adventure-php-framework.org/viewtopic.php?f=1&t=5387.
ID#180: Changed issue with setting character set for database connections to avoid SQL injection issues dealing with character set manipulation.
ID#127: Integrated changes by Ralf Schubert enabling multi-file upload.