First cut
Tidy up debug log
Add secure flag, URL into request spec object, and make it available to URL translation function for convenience
Minor code tidy-up; added documentation for API
Edit readme