fixes for the WMS capabilities parser

This PR fixes several issues with the WMS capabilities parser:

* make sure the output objects from the read method have a consistent structure
* make sure the example works when deployed and also outputs something when debug is not true
* git rid of some code which was used for backwards compatibility