HTTP callback mechanism, better logging and err handling, etc.