CN-26: Big refactor, changed classes responsibilities and abstraction level
CN-26: Added ability to remove bottom layer, but only if it's not the only one
CN-26: Fixed bug with deletion of a layer with lower index than the active