Some mino additions / changes to TemplateLayers.class

Add a new method getLayers() as some addons or other may require that information
Add option to ignore body & html layers in the hasLayers() check