Added JSON output to bin/parse.pl script.
Updated rqsh script to use env perl instead of hardcoded bin path.
Modularized implementation of explain method in algebra and plan classes.