Remove trailing whitespace.
Only valid characters in generated ids.
Use blank.gif as WMS-mockup URL in test.
Merge pull request #866 from marcjansen/866

LayerSwitcher generate bad ID when layername has spaces in it. (r=@ahocevar)