Screen Geometry - rebase

fixes for the new code base
expose more information from c++ to javascript