Bug 1023950 - Implement real state handling for mozApps and apply visuals

https://bugzilla.mozilla.org/show_bug.cgi?id=1023950

Travis: https://travis-ci.org/KevinGrandon/gaia/builds/28092860