Fix scaletoken substitutions on capabilities and raster featureinfo

apply scaletoken substitutions in a few corner cases:

- for getcapabilities requests (or when no scale is defined), we use the first
configured scaletoken
- for getfeatureinfo requests on raster layers, added token replacements in
msRasterQueryByRect() (which is in-turn called by the other raster query
functions.