Groups TOSDR API calls in a mediator function

Groups all TOSDR API calls in a seperate TosdrMediator function. This is
a refactoring and does not change any behaviour.