Merge latest changes from the PNaCl repo.

This pretty much brings the two repos together.  There are still
two differences: this repo has the untested splitEdge() routine,
and it also has the defunct RegisterManager.