Cleaned up view api and documentation.

Change-Id: I282a32e67215cd4e3f7c77352018b6fe442d48f4
Reviewed-on: http://review.couchbase.org/28651
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>