removed encoder class, program model now does encoding

since the encoder class had the single encode function, no member
variables (except a reference to the table), and required a pointer to
the program unit model to pass to the code encode functions (a reference
to the encoder was not passed); the encode function was moved to the
program model class and the encoder class (source files) were removed