Added support for debug parameter on views.

Change-Id: I044f4e553eb0d395d2db882eecf67c4e30b6b403
Reviewed-on: http://review.couchbase.org/28964
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>