Added HTTPs configuration support.

This is basically code by @aaw's from https://github.com/aaw/sunspot/commits/https-support + tests and some code to allow specifying username and password separately in the config.yml.