getsurveys() function is now complete

The getSurveys() method is now complete and functional.  Weird issue
with seeing -1 in client code, workaround by reading twice from the
server.  Should be ok for our purposes.