More cleanup for issue #207 in Transition controller for setting the correct transition type and main.js for logging.