WORK IN PROGRESS: Add support for WMS and aggregate layers

This PR should be merged only when #496 is in (it depends on min/maxResolution support in ol3), and when long term solutions are found for the 2 following workarounds: 9227e3e and cfbb56a.