Extract base layer logic to a service

Extracted base layer logic which was in map service to be able to retrieve it
from other services that may want it.
Reindent mapService (aesthetics)

Fixes #1