Clear presence

Clears all the cached presence which prevents from displaying offline
contacts as online. I also added a small optimization which I hope
works. The way this library is designed once again ruined my idea. It
appears that initPresence happens only for some contacts... and it
happens in a very random way apparently. I really need to reduce amount
of database calls.