Protocol is fetched from $_SERVER parameters. Fixes #6.
Added docblock to base64UrlEncode method.