made logger.js core module, better command registering/deregistering