bugfix: calculate current config value or arg at runtime
add screen mode restoration for each document
check screen mode in koptinterface
cleanup: use postInitCallback to restore screen mode
cleanup: use screen size in page hash explicitly
Merge pull request #741 from chrox/new_ui_code

bugfix: calculate current config value or arg at runtime