allow setting of resolutions, make functions for calculating resolutions in XYZ public to easily build up on resolution arrays.
Merge pull request #27 from sebasbaumh/setResolutions

set resolutions on layer