API make the main socket non-static
API no longer ignore send() status
Make the initialisation of the stratum thread more robust allowing the watchpool thread safe access to it after the stratum thread is started.
Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.
Merge pull request #399 from kanoi/bflsc

API Socket changes
Revert "Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2"

This reverts commit a8863995dee7bcd089e1aa9a3b86cd5c749d0d65.

This should work now...