Lots of refactoring of v3 program structure and binding classes.