Detect window.crypto and window.crypto.getRandomValues, throw warning if undeclared

Fixes #117
Moves version detection to separate private function
Adds curl fallback to version_detect if allow_url_fopen = false

Bumps verstr
Sets shebang to explicitly use python3, adds proper query string parsing using urllib and fixes key listing in example.htm