Bug 807792 - Add gecko configs for emulator b2g target. r=jhopkins, a=NPOTB

Also fixes bug 877536.
Merge b2g18 to v1.1hd. a=merge