Fixed SSL

Yeah SSL was broken. I forgot to pass the ?ssl down. I made it a little better, though. Instead of passing a flag, it's inferred from the URI.