UnitTests threading

Raspberry.cs is now ready for threading from the UnitTests