This is part of fixing qvm-start. qmemman was moved with minimal touching, mainly module names. Moved function parsing human-readable sizes from core2. This function is wrong, because it treats k/M/G as 1024-based, but leave it for now.
Acknowledgement: This commit is a result of core3 review by Marek.
This is a big commit and probably incomplete. Tests will follow.