websocket_demo: Simplify get_stats()

Instead of trying to parse /proc/net/dev to get the rx and tx bytes we
can simply grab the values from
/sys/class/net/<interface>/statistics/{rx,tx}_bytes

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>