cleaned up existing bugs

Fixed parsing XML in DoQuery
Removed invalid params from queries
Added EditRecord support in regards to xml2js
Fixed prepareOption prototype