Added logging to dashboard lib. Cleaned up logging in server.js