Reorganized and optimized logging. Log configuration methods are now
instance methods instead of static methods of MCMC, and are properly
restored on deserialization.