Refactor managed NotHub SDK and add Xamarin Android support