Bug 844363: better tests for mozpool; r=mcote

Because 80% test coverage is good enough for anyone.
Bug 846542: store current and next image separately in the devices table; r=mcote