Implement device filtering UI (bug 969244)

https://bugzilla.mozilla.org/show_bug.cgi?id=969244

So... I have no idea. It's the only way I could get the mock to work, I'm not sure what's going on behind the scenes :( I suspect it's a weird interaction between mock and our loader.