Issue 19: Downgrade pythons to 2.5 for HTTPS.
Issue 19: fix various error handling issues.