Causal blankets: Theory and algorithmic framework — arXiv2