Removed hard coding of HTTP protocol

Now uses Director::protocol() method to determine appropriate protocol to put on preview links in CMS.