implemented JavaScript reduce function compiler
Merge pull request #67 from pegli/reduce_complier

implemented JavaScript reduce function compiler
Add basic error handling to match the behavior of CouchDB more closely.

If a javascript map function contains a syntax error, it is just ignored. It's views will always be empty.
If a javascript map function throws an error when evaluating a document, that document is just ignored.
Merge branch 'master' of github.com:couchbaselabs/TouchDB-Android
Fix handing over json to rhino by serializing it from the native java objects first.

Possible optimizations:
* make the dict and array wrappers work so they convert their children on demand (Thus only what is actually accessed will be converted)
* hand in the actual json from the db directly, that way js still has to parse it, but at least we save parsing the json from java another time
Merge pull request #69 from dwt/master

Add basic error handling to make js views behave more closely to CouchDB
Merge pull request #70 from dwt/correct-json-for-js

Correct json for js
Update TouchDB-Android/src/com/couchbase/touchdb/TDServer.java

LEGAL_CHARACTERS expression changed to handle _all_ file/database name requirements. Enforce legal characters [1] and first character is lowercase alpha.

Only lowercase letters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Moreover, the database name must begin with a letter. from cloudant.com
Update TouchDB-Android/src/com/couchbase/touchdb/TDServer.java

Removed the caret in the parameters to Pattern.matches.
The caret no longer needs to be added to the expression as it is part of the expression.
masking username and password credentails in the logs
masking username and password credentails in the logs and spacing
removing other changes to make an atomic pull request
Merge pull request #87 from iLanguage/master

Tiny patch which removes username and password from the logs
Merge pull request #83 from bsquared/master

Resubmitted fix for issue 81.
add support for large attachments and replication callback mechanism
integrated branch replicator fixes