update .gitignore
move remote socket to the handler from session
add https proxy handler