Open log file before loading configuration file
Add missing log parameter in tests
Clean up catalog structs
Update catalog record handling

 * Make catalog record channels use pointers
 * Add connector pointer into metrics
Remove stack from library structs