add wms/wmts handlers

@jdeolive, just noticed some minor mess in here but other feedback?