Some glue script changes.  Tophat is definitely not finished but need to check it in.
Another batch of changes heading towards getting tophat working.