Bug 999458 - 2.b/2: add two more utility functions to head.js. r=echen

* setEmulatorGsmLocationAndWait
* setEmulatorOperatorNamesAndWait
Bug 999458 - 2.c/2: 0 <= gsmLocationAreaCode <= 65535. r=echen
Bug 999458 - 2.d/2: add some more complex test cases for OPL/PNN matching. r=echen
debug