Simplify and speed up resolver.xqm
Created by: yngwi
Eliminates a bottleneck in resolver.xqm for charters. Old version was always getting the requested resource using a query for the atom:id which was slow. New version just calculates the path in the database from the request url and directly looks if a resource for this path is existing.