Fixing broken proxy and adding SSL support