add support for registering http and ssh based urls

fixes #4