Make sure 'keyevent' works if metastate is null.
Merge pull request #1164 from paymand/fix_for_keyevent

Fix for keyevent
Merge pull request #1163 from jlipps/master

various fixes and refactors
update uicatalog tests to use APPIUM_PORT