Make it work, add tests, ...

Extract the actual parameters from the CGI.parse arrays
Always use HTTPS
Extract timestring parsing into function
Fix the &loop argument

Add tests for all the changes
Removed unused test fixtures and added new ones