getSurveys() function is complete

getSurveys() function is now complete.  Is currently called in the
results section and can be trivially added to the take survey section.
Weird issue with seeing -1 when reading in, workaround by reading in
twice from the server and dropping the input.