Updated LayerTree to support refreshing after the layer list changes.
Made currentLayer a settable property.
Added getter/setter for the Layer name property.
Added remove, deleteElements methods to Layer.
Added forEach and indexOf helper functions to layers module.
Added null check in readJSON.
Updated comments.