Replaced the bash version with a ruby version

This also includes tests
Added a CI test hook
Adding URI parser