logger implementation using custom api

This is the change to add logger implementation using freedom 0.5.0 custom api support. 
Can you update: https://github.com/freedomjs/freedom-typescript-api/blob/master/interfaces/freedom.d.ts#L18
So that we have avoid the any type here and user `freedom.Provider`.