COP-1520 Fixed screen rotation issues and cleaned up logging.