Don't crash on Python errors (in kernels).

Instead, forward exceptions to the master, which are propagated
back up to Python.
Break apart expressions.

Each expression module now provides an Expr class and the
required information for shaping and evaluation.