Fixed parsing of wms layers from capa document; now recursively parsing every layer in the tree; #183