iOS 7 compatibility, default backgroundColor, modes per state

I know this changes a lot of things, but this version is much better, I think.