Fix version info

It was broken. Also, don't use a magic constant
Fix processing of BadRequests
Fix a syntax error that went undetected
Reconnect if DGI sends 'duplicate session'

Instead of quitting, resolves Issue #153