Fix friendlist having a bad gray background

Thanks to toweI for reporting the issue
Fix #767
Rewrite horrible type casting pointer magic with shifts

Why would you generate that random number byte by byte, anyway ?
Merge branch 'master' into debian/unstable
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>
Merge tag 'debian/0.0.0+git20141115.r1536-1' into ubuntu/trusty

qtox Debian release 0.0.0+git20141115.r1536-1
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>