Allow developers to set offline status (bug 1049770)

Fixes #2741