MB-11490 Refactor view error message parser

The view btree info data structure stored only information about
reducers, but info about view id was not present. Added view id info
to this data structure. Also refactored error parser utility function
to be more generic and reusable.

Change-Id: If6bff80c98e255ffe5ec8ef7ae090f535528e46a
Reviewed-on: http://review.couchbase.org/38652
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: buildbot <build@couchbase.com>