Improve video embedding

This branch adds support for embedding videos which are served over a secure (https) connection.