check-url: Add check-secure parameter to return success in case of code 401
slaprunner: add promise on cloud9 frontend
check_url_available: fix small bugs