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
* git rid of some code which was used for backwards compatibility