redirect to https, initial version
check if https page exists
setting for enabling redirecting, default is off
redirect to secure page on request
some refactoring
minor fixes