Merge pull request #140 from ollieh/master

Moved QR code and tox file to internal storage
Stop user adding the same friend multiple times
Close cursor
Don't add friend to tox friend list if it wasn't added to database
Added notifications when receiving a chat message and not looking at the chat of that user