Added handling of watches, after receiving a setwatch command through the socket (handleclientmessage, watches).
Handling changes when they occur on watch (watches, changestate).