Mapper: use md5 hashes for database indexes

indexing the full path exeeds the maximum index length for MySQL
Merge pull request #1581 from owncloud/mapper_md5

Mapper: use md5 hashes for database indexes