Made logging more consistent and less verbose
Moved ui state logic to state.js and added automatic state restoration (issue #4)