pmem: Extend pmemblk_check functionality.

 - Update the checksum handling to handle BE systems.
 - Improve the way the chk-sums are calculated.
 - Adjust the checksum unittest to be endianess aware.
 - Recover from failed flog map updates.
 - Handle wrong block sizes during opening of pools.
 - Add invariant checks inside btt where appropriate.
 - Remove unnecessary callback entry point

Initial version drafted by @mdalecki 
Either put an empty line between all if's or remove them all.