HTTPS support for RSS feed URL generation + move $gallery_link generation into rss.php

This fixes #33, and prevents non-editable content in config.php