cli: fix missing reference to superfast preset
improvement TEncBinCABAC::encodeBin by temporary variant and reduce AND operator
improvement TEncBinCABAC::writeOut by mask operator and local variant
reduce g_minInGroup from uint32_t to uint8_t
optimize: replace g_groupIdx[] by getGroupIdx()
improvement by replace SHIFT to MASK_AND
faster sign(X) and N^2 on TComTrQuant::xRateDistOptQuant
cleanup on TComTrQuant::getTUEntropyCodingParameters
api: add param.bRepeatHeaders - insert stream headers in each keyframe NAL

This is apparently useful for raw stream formats
Merge with stable
rest: add Makefile for generating HTML from reST, cleanup some nits
rest: use comma to separate short and long options

This looks better, and fixes cross referencing
rest: fix csv logging descripion, move debug options to the end
rest: large cleanup of CLI opt docs
rest: improve CLI docs, fix some wrong descriptions, moar better

I've moved --weightp and --refs to the ME section since they have no bearing
on slice decision and lots of impact on motion search.  Some new options are
still missing, will add those in a later commit
rest: add a couple of missing options, improve descriptions of others
api: drop VUI options which are not fully implemented

It is better to not have to document that these are unfinished
rest: CRF options are doubles
api: fix documented defaults for cuTree and AQ
cli: remove dead options from getopt long-options list