changed layer constructor, added insertLayer to map

overhaul of layer constructor semantics so that a layer can be built
external to the map and then inserted.