Escript protocol consolidation

We would still need to pass it around everywhere. Or we could extract the file reading phase: prepare all paths (get them from helper functions) -> override consolidated beams -> read beams.