New libdb module. A library of some useful routines that will
hopefully get bigger and reduce the amount of typing that we all do. I hacked up sched_reload and os_load to use it. Pretty simple to start with. I'm not planning to go much further on this until we sync up with the dbtoir branch since it will just create needless branch merge errors.