Fix move bugs and change use of HTTP_SSL macro.
Change handlers: use weak_ptr & and static funct