major overhaul of the layer class

- supports nested archives (except rar archives, they can't be nested. so zip inside rar is ok, rar inside rar or zip not)
- case of the filename extension doesn't matter anymore