Adding basic socket transactions

Broadcasts messages to all connected. Interprets 0-8 as updates on local
array.