Added a logging api and moved all api's into a single ApiDictionary class to make it easier to pass the api's every.