Cleaner reconnection fix

Moved the constructors for reader and writer back to __construct() and
added resetKey() method on new login request.