Improved categories.  Various api bug fixes.  Added logging.  Changed item category scripts