Added option parsing (issue #4).

* Moved utility functions into share/ruby-install/ruby-install.sh.