core: Add timeout to client's socket
shared: Terminate connections when read fails for any reason

For now make it easy and don't try and figure out if we should wait
for another timeout. Just close any connections which had problems.
gitignore: add demo file

Signed-off-by: William Douglas <william.douglas@intel.com>