initial work on logging infrastructure
improved information on log in popup
more TODO