Moved layers into d3l object
Map object and functions moved to layermanager instead of layer