Add support for hiding offline contacts

Adds an option to hide offline contacts. Default behavior remains unchanged.

Fixes #490