Added isSecureRequest() function
Added  parameter to baseUrl(), urlTo() and redirectTo() functions