Added fx::atexit package for setting of exit handlers.
Extended the low-level fossil package to use exit-handlers for proper
DB shutdown on exit.