countless fixes and changes to get api3-ruby working and tested