Added view parameter attachments

Added view parameter attachments to include attachments in returned docs.