libtorc-core: Allow the datbase location to be customised.
libtorc-core: Use the application name in the settings database filename

- should minimise database locking conflicts
libtorc-core: Add option to set the logfile.