bbb-lti: Fixed issue that prevented https to work on nginx/tomcat

Generalized endpoint construction for supporting https when nginx is proxying https requests