provision: fixed function comment in interface

It was with the old function name. It was probably refactored but the
comment reimained with the old name
api,app: moved LogWriter to app so it can be shared

Also renaming api/writer.go and api/writer_test.go go
api/flushing_writer.go and api/flushing_writer_test.go.