Added async PreLoginEvent to change online mode per connection.

Signed-off-by: xxyy <devnull@nowak-at.net>
Adapt PreLoginEvent to protocol hack, Fixes #21
Merge pull request #22 from TheUnnamedDude/feature/preloginevent

Add PreLoginEvent, fixes #21