added getSingleLayer() method to replace duplicate code querying for a layer
added getSingleLayer() method to replace duplicate code querying for a layer

flamingo-geocms/flamingo,mvdstruijk/flamingo,mvdstruijk/flamingo,flamingo-geocms/flamingo,B3Partners/flamingo,B3Partners/flamingo,flamingo-geocms/flamingo,B3Partners/flamingo,B3Partners/flamingo,flamingo-geocms/flamingo,mvdstruijk/flamingo,mvdstruijk/flamingo