Added thread synchronisation
Merge branch 'supervisor' of github.com:sportingsolutions/SS.Integration.Adapter into supervisor