Actually send search query
Tidy up server/client stuff
Fix messages sent without newlines
Refactor determination of valid options