cleanup: Remove trailing whitespace.
cleanup: Indentation.
Only send presence if requested.

Fixes tests.
Merge pull request #21 from Dignifiedquire/presence_fix

[presence] [wip] Cleanups and fixes.