update to work with new cache updates
add option for https, note https is not built in so this will require a
proxy in front of the app. Also, refactor detection of endless redirects.