rc: bug fixes in 2 pass ABR

ratecontrol - fix duplication of bits in calculating m_totalBits
frameencoder - don't amortize totalBits in 2 pass ABR
level: add --high-tier and auto-configure VBV if --crf N --level M (refs #61)

This patch is a major overhaul of the level enforcement logic. The first obvious
difference is that the user may specify the tier. The second difference is that
x265 will no longer run any configuration that might generate non-compliant
bitstreams.

Any of these conditions will cause the encode to abort if a minimum decoder
level was specified:

* picture size is too large
* frame rate is too high
* constant QP rate control is configured
* the specified level does not exist

Further, if CRF was specified, we now configure VBV using the maximum CPB size
and bitrate for their level/tier (and issue a warning that the output may now
be non-deterministic).

Note that the encoder will still encode the minimum decoder level which covers
the encode parameters.  So even if you specify --level 5.1, we may signal the
stream as level 4.0-High if the stream should be decodable at that level.

This further fixes the CLI to allow --level-idc or the shortened --level, just
as it now also supports --high-tier or the shortened --high.

--HG--
extra : rebase_source : 79503b81466edd8e6d95f4d9454855f80f76318a
rest: update --profile, --level, --high-tier docs

--HG--
extra : rebase_source : bb8dab978fa1dd0bb4be2f8b7d537da818f31740
extra : amend_source : 9ef0799738dc8fa4d4810d88b76cb336f6a9ae71
level: fix GCC signed/unsigned comparison
remove very obsolete regression batch files
param: re-order code to avoid unreachable code warnings in 10bit builds