Fixed username search order
Fixed Firefox mixed warning
Fixed mobile detect
Improved API error debug info
Improved debug info in error modal
Fixed add contact from attachment

Closes #492
Correct chat delete

Clear history & Delete chat remove conversation from conversations list
Merge remote-tracking branch 'upstream/master'