Bug 1023950 - Implement real state handling for mozApps and apply visual...

...s