Added ability to force pages to only work under https protocol.
Modification to getPath in result of previous feature.
added Controller OnLoad event.