MB-7882 Optimize btree node decoding

Using the +bin_opt_info flag, the Erlang compiler told the
decode function was not binary optimized:

/opt/r14b04/bin/erlc -I../../src +bin_opt_info  couch_btree.erl;
./couch_btree.erl:70: Warning: NOT OPTIMIZED: sub binary used by binary:copy/1
./couch_btree.erl:433: Warning: NOT OPTIMIZED: called function decode_node/3 does not begin with a suitable binary matching instruction
./couch_btree.erl:442: Warning: NOT OPTIMIZED: called function decode_node/3 does not begin with a suitable binary matching instruction

After this change, the compiler tells it is now optimized:

/opt/r14b04/bin/erlc -I../../src +bin_opt_info  couch_btree.erl;
./couch_btree.erl:73: Warning: NOT OPTIMIZED: sub binary used by binary:copy/1
./couch_btree.erl:436: Warning: OPTIMIZED: creation of sub binary delayed
./couch_btree.erl:447: Warning: OPTIMIZED: creation of sub binary delayed

Change-Id: Ie14a85a76a4e00f1f6aac99e19218fbd9841022c
Reviewed-on: http://review.couchbase.org/25394
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-7882 Binary optimize remove_block_prefixes/2

Using the +bin_opt_info flag, the Erlang compiler told the
remove_block_prefixes/2 function was not binary optimized:

/opt/r14b04/bin/erlc -I../../src +bin_opt_info  couch_file.erl;
./couch_file.erl:564: Warning: INFO: matching anything else but a plain variable to the left of binary pattern will prevent delayed sub binary optimization; SUGGEST changing argument order

After this change, the compiler now tells us it is optimized:

/opt/r14b04/bin/erlc -I../../src +bin_opt_info  couch_file.erl;
./couch_file.erl:564: Warning: OPTIMIZED: creation of sub binary delayed
./couch_file.erl:570: Warning: OPTIMIZED: creation of sub binary delayed

Change-Id: I746dcf440a83789302a801318d4839e97b7c5287
Reviewed-on: http://review.couchbase.org/25395
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Remove --check_plt flag passed to dialyzer

Accidently added in 88623b53aa94bd4ce8293b9c5c71f9578e9fc816.

Change-Id: Ic77c4a635bbf8cd2ffce75294aeec499d4c0d041
Reviewed-on: http://review.couchbase.org/25396
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-7978 Remove list reversal

Missed in commit 912b8667560a275a652a2ff0d9d9264ed38e9328.
Just a mirror of couch_set_view_mapreduce.erl until
development views, single partition, use set views.

Change-Id: Ic657dde47c08f413efe291cf59674960fc5ade61
Reviewed-on: http://review.couchbase.org/25397
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Merge remote-tracking branch 'origin/2.0.2'

* origin/2.0.2:
  MB-7978 Remove list reversal
  Remove --check_plt flag passed to dialyzer
  MB-7882 Binary optimize remove_block_prefixes/2
  MB-7882 Optimize btree node decoding

Change-Id: I861d1370da487a06c49471850ea36bd492d5c2ea