Now supports nested %#if(n|)def blocks.  Removed Python version.

This is a major overhaul of the mechanism behind the MATLAB code.  Passes basic
tests.

The Python version was removed to save the trouble of maintaining two different
codes.