Teach codes_term/1 to generate Prolog source code

There is still a lot of work to be done in formatting the source code
nicely.  It's a start though.