fixes for basic auth and WMS, added WMS sample