Added support for HTTPS. The query string is now an a-list after being parsed. Following redirects keeps the query and fragment of the original request. Minor bug fixes.