Huge logger update. Use Pear logger for now.