added exil-env:template-list and rule-list, gui shouldn't know
  that these are held in hash-table
added forward declarations to gui functions