Improve performance

Added some useless cpp class which is a bridge between DatabaseManager
and XmppClient, so I won't have to reinitiate connection to db with
every query. Also I optimized roster updating code and initial
multiaccount support in database - for now it fixes loading roster when
switching between accounts but I'm planning to start working on new cpp
class called XmppConnectivity, which would be used to manage accounts.