buildhistory: Record size of installed package not compressed archive

:Release Notes:
* Usually it's more important to know how much space will each
  package take on target device then size of compressed package.

:Detailed Notes:
* Example for libewebkit0 with 4 different architectures, interesting
  that om_gta02 .ipk is bigger but it's smaller when installed

  before:
  MACHINE     DEFAULTTUNE       SIZE (.ipk file)
  om_gta04    cortexa8t-neon    15996 KiB libewebkit0
  qemux86_64  x86-64            16992 KiB libewebkit0
  spitz       xscale            16148 KiB libewebkit0
  om_gta02    arm920t           16260 KiB libewebkit0

  after:
  MACHINE     DEFAULTTUNE       SIZE (installed)
  om_gta04    cortexa8t-neon    60544 KiB libewebkit0
  qemux86_64  x86-64            63720 KiB libewebkit0
  spitz       xscale            60588 KiB libewebkit0
  om_gta02    arm920t           56268 KiB libewebkit0

* Backport of oe-core commit
  http://lists.openembedded.org/pipermail/openembedded-core/2013-July/080878.html

:Testing Performed:
Build tested, buildhistory output checked.

:QA Notes:
No change in image

:Issues Addressed:
[GF-3127] Backport newer buildhistory.bbclass
[GF-9902] Disable checking for package version decreases

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I9862be8a90225e989b710d1cf5934cd614d19e03
Reviewed-on: https://g2g.palm.com/3053
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>
buildstats-summary: Import from meta-mentor

:Release Notes:
It's useful to see the ratio between tasks reused from sstate and tasks
executed locally during the build.

:Detailed Notes:

:Testing Performed:
Shows output like this:
NOTE: Build completion summary:
NOTE:   From shared state: 1
NOTE:   From scratch: 339
at the end of build log, the ratio is bad, because buildhistory change
invalidates almost all checksums.

:QA Notes:
No change in image

:Issues Addressed:

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>

Change-Id: I265b59bcb12ef733099aad8c644bfaed1fa5842e
Reviewed-on: https://g2g.palm.com/3052
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>