SABnzbd API, logging and function separation