support the use of additional RVM repositories

This commit adds options for custom domains and repositories to
support the installation of RVM on internal networks that cannot
or should not access the internet directly. Currently, this only
supports bitbucket.org, github.com and github enterprise sites.