Introduce HttpResponse callback selector type to resolve #2365, fixed version ;-)

Dropped the changeset of shared directory from previous pull-request.
And fixed warnings of samples which were related with changing sources.