Updated loading function to work more like the lib modules.  Updated and integrated the log lib and updated server to reflect changes to loading.js