Fix resource binding and append four random chars
Created by: LNJ2
This fixes the error that no custom resource was bound at all and also fixes the possible resource conflict when starting several instances of kaidan with the same JID. This is just done by append four random alphanumeric characters to the resource (many other clients do the same).
Fixes #247 (closed).