Added accept option support to GUI and (hopefully) fixed bug with XML/JSON parsing of responses.