Added global var for build revision.

Part of #321.
Added loot_get_build_id() to API.

Also added tests for it, and fixed an undocumented return value for
loot_get_version().
Updated MSVC build doc.

Now it mentions the 3rd party CMake modules used. Also some trailing
whitespace trimmed.
Added display of build revision to UI.

Closes #321.