Simplified viewWidth/Height logic, added getOrientation
Improve recognition of codexpagetop, record orientation on layouts
Made WSN hash functions return false for empty strings