Updates to the webAPI ruby library

Added the wait method