add GO terms download option

This changeset adds support for the export of GO terms via the history download functionality. For genes and mRNAs, GO terms for their products are merged.