ability to configure wms expires, refs #498

also contains batch updating for gwc layer configuration and
reworking/cleanup of code