Add support for managed status bars.

More goodies, as promised. :)
Style: no `if` statements without braces.