strip newlines from adhoc view definitions

(parenscript:ps formats javascript code in a nice human-readable way with newlines (good for debugging too I guess).  couchdb doesn't like newlines in the url.

So seems to make sense to simply strip out those newlines - works for me!

Just getting started with clouchdb and couchdb in general.  So not sure whether this is same bug also pops up elsewhere!?