"name" and "domid" are valid entries, but not processed here.

Some validity checking is done elsewhere, but could still be
improved.
Merge pull request #92 from awsaba/hashtable_name_entry_fix

"name" is a valid entry, but not processed here.
Fixing some leaks and performance.

Uses some glib defines toSupport older glib versions.
Merge pull request #93 from awsaba/more_leak_fixes

Fixing some leaks and performance.