Only add debug flag to LTI params if debug mode
Use $_SERVER[HTTPS] to determine if ssl
Update local_mediacore version