Add Layer class as context manager. Add layer.open method