Add support for managed status bars.

More goodies, as promised. :)
Style: opening brace on same line for control flow statements.