Added 'user_update' event on user rewrite

Closes #414
Handling empty contacts/phonebook

Closes #409
Fixed wide gif images

Closes #376
Fixed authorizer bad network handling

Closes #415
Improved errors in mtproto
Added curPeerId check for notifications on mobile

Closes #270
Fixed authorizer
Merge remote-tracking branch 'upstream/master'