Properly handles DIMS base URLs with and without trailing slashes.

Fixes bug where resize and crop with dims3 handler would only honor one of the commands.