Add patch for various db issues and enhancements

Conflicts:

	include/upgrader/streams/core.sig
Add bootstrap::signal function to connect to system-wide signals of interest
Connect to logout signal and clear upgrader session on staff logout.